Write a simple program to find the size of different basic
data types in C.

Answer Posted / rajiv

int x,y,b;
char a;
x=sizeof(y);
b=sizeof(a);
printf("the size of int is %d & the size of char is
%d",x,b);

Is This Answer Correct ?    20 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Who is the founder of c language?

671


What are the advantages of external class?

585


Explain what is gets() function?

616


What is structure padding and packing in c?

608


c programs are converted into machine language with the help of a) an interpreter b) a compiler c) an operatinf system d) none of the above

722






How will you find a duplicate number in a array without negating the nos ?

1635


What are comments and how do you insert it in a C program?

730


Why is c called a structured programming language?

664


Why do we use namespace feature?

573


Calculate 1*2*3*____*n using recursive function??

1505


FILE PROGRAMMING

1770


Explain how can I manipulate strings of multibyte characters?

770


"C" language developed by "Dennis Ritchie" at AT & T. his remarks are a) too general, too abstract b) could deal with only specific problems c) lost generality of BCPL and B restored d) no remarks

649


Is c a great language, or what?

595


i have to apply for the rbi for the post of officers. i need to know abt the entrance questions whether it may be aps or techinical....

1512