main()
{
printf("\n %d %d %d",sizeof('3'),sizeof("3"),sizeof(3));
}
wat is the o/p and how?

Answer Posted / k.thanigaivel

This output is
4 2 4

Explanation:
sizeof('1 or 2 or 3,......or n')=4

sizeof("0")=2
sizeof("10")=3
sizeof("100")=4
sizeof("1000")=5
sizeof("10000")=6
.
.
.
.
.
sizeof("n")=n

sizeof(1 or 2 or 3......or n)=4

Is This Answer Correct ?    27 Yes 25 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the size of enum in c?

621


What is ambagious result in C? explain with an example.

2057


How can you find the day of the week given the date?

617


write a program that declares an array of 30 elements named "income" in the main functions. then cal and pass the array to a programmer-defined function named "getIncome" within the "getIncome" function, ask the user for annual income of 30 employees. then calculate and print total income on the screen using the following function: "void getIncome ( ai []);

1848


How can I find the modification date and time of a file?

604






Is c is a middle level language?

597


What is the purpose of the preprocessor directive error?

682


What are the types of bitwise operator?

665


What is difference between array and structure in c?

580


What is meant by type specifiers?

660


What is static and auto variables in c?

567


How do you define structure?

567


How can a process change an environment variable in its caller?

656


Can a function be forced to be inline? Also, give a comparison between inline function and the C macro?

658


What is the significance of an algorithm to C programming?

596