TYPES OF DATA TYPES AND DEACLARING IN A SINGLE LINE FORMATE

HOW TO PRINT ALL DATA TYPES IN SIGLE LINE FORMATE


What are the keywords used in data types?

     keyword nothing but reversed specified function where are so many keyword used in c language 
but now your using "printf();" ,"scanf();" and getchar();
printf(); >>>printf means print data what ever present in double contusion 

problems with printf  


1.when it will read null character it will terminated 

problems with scanf


1.one most problem is buffering problem  ………...how to slove  buffer problem just give space before declaring type data declaration give space then it will automatically clear problem

         example:
         
                       scanf("space %data type declaration ",addres of variable);

                       scanf("  %c",&num);
2.where it will null character it will terminated   




some of data type declaration using printf 


output


aa=0,bb=0,cc=0,dd=0, 0.0000  0.0000
a=0,b=0,c=0,d=0

Why this printing zero output ?

 Note :    Before knowing the answer you must know types of data segments with knowing that concepts you cannot understand this output.

Answer:

global variable will store data segment its values always zero that why it will printfs zero value.   



How to print and scan at time ?




int  num=12;
printf("%d",num , scanf("%d",&num));

  Note : how is it work comma operator it will read next stament







Comments

Popular posts from this blog

circular linked list

calendar program odd days method

C in Depth