#include<stdio.h>
main(0
{
printf("\n %d %d %d",sizeof(3),sizeof("3"),sizeof(3));
}

Answer Posted / nithya

the above code output is

syntax error

this code will be change from

#include<stdio.h>
main()
{
printf("\n %d %d %d",sizeof(3),sizeof("3"),sizeof(3));
}

the out put is

222

Is This Answer Correct ?    9 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Some coders debug their programs by placing comment symbols on some codes instead of deleting it. How does this aid in debugging?

902


What is #line in c?

787


What is hashing in c?

916


What the advantages of using Unions?

945


This is a variation of the call_me function in the previous question:call_me (myvar)int *myvar;{ *myvar += 5; }The correct way to call this function from main() will be a) call_me(myvar) b) call_me(*myvar) c) call_me(&myvar) d) expanded memory

1015


How do I round numbers?

794


Is this program statement valid? INT = 10.50;

920


Why do we use header files in c?

828


Why #include is used in c language?

814


Why cant I open a file by its explicit path?

833


How would you obtain the current time and difference between two times?

1004


What is the use of a semicolon (;) at the end of every program statement?

1168


Is null a keyword in c?

952


What is a memory leak? How to avoid it?

915


What does stand for?

866