Skip to main content

Posts

Showing posts with the label coding

HELLO WORLD PROGRAM USING C LANGUAGE | BLOG |

HERE IS THE CODE FOR PRINTING HELLO WORLD USING C LANGUAGE #include<stdio.h> int main() { //print hellow world printf("hellow, world!"); return 0; } HOW THIS PROGRAM WORKS First of all , this is the basic program in c language #include is the predecessor that commands compiler to add stdio.h i.e.standard input and output int main is the main function which will be executed printf is used for printing/displaying text in printf command return 0 is written to exit for the program. THANK YOU LIKE SHARE AND COMMENT

TOP 5 TOPICS TO PICK FOR PROJECT BASIS LEARNING FOR PROGRAMMING | BLOG |

Here are the top 5 TOPICS TO PICK FOR PROJECT BASIS LEARNING FOR PROGRAMMING you can take one of the topic for your pbl and surprise you friends and others. 1.Game development :-  Game development is a strong topic to chose if you don't have experience about hoe games are made you will have to give more time to learn it. There are various engines which will help you to make game very easily. One of the famous engines are UNITY, UNREAL, you can make game with webgl. you can make games for windows, iPhone,android and for many platforms. 2.Graphics in programming:- It is a easy topic for student to make program using c language and add graphics in it. But if you want your project different than other you should learn how to add graphics in c language. When you will get an idea about how graphics affect you presentation you can chose one good idea and make  it properly and be steady. 3.Artificial intelligence:- Artificial intelligence  (AI) refers to th...

Student database creation using c language | BLOG |

How to create a program using c language which will store information about students and you can add another students after also and you will be able to search student by his/her roll no.? ANS:- Here is the code  (Tip:- Make sure to compile this code and do practice a lot to gain knowledge about programming ) #include<stdio.h> struct student { char name[50]; int roll; float marks; }; int main() { int i,num,n,choice,flag,j,p,z,ch,r=0,c; struct student s[50]; do { printf("enter the process 1:ADD 2:diplay 3:search ");     scanf("%d",&ch); switch(ch) { case 1:   printf("enter no of student\n"); scanf("%d",&z); r=r+z; p=r; printf("enter info\n"); for(i=0;i<p;i++) { printf("enter name\n"); scanf("%s",s[i].name); printf("enter roll no\n...

CODE FOR POINTERS AND ADDRESS STORED IN POINTERS | BLOG | | C++ |

HERE IS THE CODE EXPLAINING HOW POINTERS STORE ADDRESS AND HOW TO DISPLAY ADDRESS OF VARIABLE AND VALUE OF VARIABLE CODE :-  #include <iostream> #include <string> using namespace std; int main() {   string food = "Pizza";  // A string variable   string *ptr = &food;  // A pointer variable that stores the address of food   // Output the value of food   cout << food << "\n";   // Output the memory address of food   cout << &food << "\n";   // Output the memory address of food with the pointer   cout << *ptr << "\n";   return 0; } HOW TO CODE :- coding is easy but only thing you need to do is practice. Do lot of practice of different codes with your compiler . if you have any questions about your code ask me with mail kghate8121@gmail.com use #askque THANK YOU. FOLLOW US twitter :-  https://twitter.com/KrishnaGh...