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
a program that performs some preliminary processing in C, it acts upon certain directives that will affect how the compiler does its work a) compiler b) loader c) directive d) preprocessor
How does sizeof know array size?
Can you tell me how to check whether a linked list is circular?
What is the collection of communication lines and routers called?
int i[2], j; int *pi;i[0] = 1; i[1] = 5; pi = i; j = *pi + 1 + *(pi + 1)Value of j after execution of the above statements will be a) 7 b) 6 c) 4 d) pointer
What are unions in c?
Why shouldn’t I start variable names with underscores?
What are different storage class specifiers in c?
What are near, far and huge pointers?
FILE PROGRAMMING
Define C in your own Language.
what are # pragma staments?
formula to convert 2500mmh2o into m3/hr
Why malloc is faster than calloc?
Explain how do you print an address?