#include<stdio.h>
main(0
{
printf("\n %d %d %d",sizeof(3),sizeof("3"),sizeof(3));
}
Answer Posted / abhishek kumar verma
you have made a typing mistake if code will be this
#include<stdio.h>
main()
{
printf("\n %d %d %d",sizeof(3),sizeof("3"),sizeof(3));
}
then output will be 4 2 4
because in first it will print the size of an integer and in second it will print the size of an string and in third it will print the size of integer again .
| Is This Answer Correct ? | 4 Yes | 5 No |
Post New Answer View All Answers
What is assignment operator?
What are # preprocessor operator in c?
A variable that is defined in a specified portion of a program but can be used throughout the program a) global variable b) local variable c) character d) none
Explain how can you check to see whether a symbol is defined?
What is a nested formula?
You are to write your own versions of strcpy() and strlen (). Call them mystrcpy() and mystrlen(). Write them first as code within main(), not as functions, then, convert them to functions. You will pass two arrays to the function in the case of mystrcpy(), the source and target array.
What is c language and why we use it?
#define MAX(x,y) (x) >(y)?(x):(y) main() { inti=10,j=5,k=0; k= MAX(i++,++j); printf("%d..%d..%d",i,j,k); }
How do I get an accurate error status return from system on ms-dos?
How can you check to see whether a symbol is defined?
Why does the call char scanf work?
What is sizeof array in c?
What are the differences between Structures and Arrays?
What are bitwise shift operators in c programming?
What are the 32 keywords in c?