Write a simple program to find the size of different basic
data types in C.
Answer Posted / jugad
#include
#include
int main()
{
printf(“%d %d %d %d”,sizeof(int),sizeof(unsigned
int),sizeof(float),sizeof(char));
getch();
return 0;
}
courtesy:http://answerwale.co.cc/?p=23
| Is This Answer Correct ? | 21 Yes | 7 No |
Post New Answer View All Answers
Why should I use standard library functions instead of writing my own?
What is meant by recursion?
What is the difference between declaring a variable by constant keyword and #define ing that variable?
What is volatile variable in c with example?
What is the best way to comment out a section of code that contains comments?
What is sizeof c?
Difference between exit() and _exit() function?
How many data structures are there in c?
What is the translation phases used in c language?
Is c# a good language?
Are comments included during the compilation stage and placed in the EXE file as well?
Explain what header files do I need in order to define the standard library functions I use?
Explain how do I determine whether a character is numeric, alphabetic, and so on?
What are the types of data types and explain?
What is a shell structure examples?