Skip to main content

Posts

Showing posts from June, 2018

Data Types

Data type is basically the form or type of the specific data that can hold variables in the program. Variables is the name of storage location which contain information of Data Type. Types of Data types:- 1:  Integer -(int) eg.10,9,8...  eg. Age of person      (natural no.s)   2:  Float -(float) eg.6.8,9.5,....  eg.Price of anything      (decimal no.s) 3:  Double -(double) eg.7.8967687666867,......       (Long Values After Decimal) 4:  Character -(char) eg. 'a', 'B'...... eg. Grade        (Letters) 5:  String -(char name[]) eg. "Yes", "INDIA"                                          eg. Address      [(0-9) ,a to z, A to Z, Symbols.] 6: Boolean - eg. ON/Off , Yes/No. 7: Void - eg. Usage with functions[void mai...

Lets Start with Basics of Program

#include<stdio.h> #include<conio.h> void main() { clrscr(); printf("Lets\n start Basic of Program"); getch(); } Briefly explanation of the Above Program So, here we use  #include <stdio.h> and #include <conio.h > because these two are the header files and there  is function defined for these two header files And #include means that include these two header files. void is a datatype which uses with the functions and here it uses with main(). void main() { all text b-w them } clrscr(); means clear the output screen. printf (); means show the output text screen. getch(); means hold the output screen.