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
In a header file whether functions are declared or defined?
What is a pragma?
What does d mean?
What are the advantages of using new operator as compared to the function malloc ()?
What was noalias and what ever happened to it?
Explain what header files do I need in order to define the standard library functions I use?
Give differences between - new and malloc() , delete and free() ?
Can you subtract pointers from each other? Why would you?
Why does notstrcat(string, "!");Work?
how to find binary of number?
What does the c preprocessor do?
What is static memory allocation? Explain
What does c mean before a date?
What is the method to save data in stack data structure type?
When should volatile modifier be used?