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
How can I copy just a portion of a string?
Is null always defined as 0(zero)?
What are the salient features of c languages?
What are all different types of pointers in c?
What are the various types of control structures in programming?
What are header files in c?
A SIMPLE PROGRAM OF GRAPHICS AND THEIR OUTPUT I WANT SEE WAHAT OUTOUT OF GRAPHICS PROGRAM
What is ambagious result in C? explain with an example.
What's a good way to check for "close enough" floating-point equality?
while loop contains parts a) initialisation, evalution of an expression,increment /decrement b) initialisation, increment/decrement c) condition evalution d) none of the above
What is the difference between null pointer and wild pointer?
How can I insert or delete a line (or record) in the middle of a file?
What is the use of bitwise operator?
What are structural members?
When can a far pointer be used?