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
What is the size of enum in c?
What is ambagious result in C? explain with an example.
How can you find the day of the week given the date?
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 []);
How can I find the modification date and time of a file?
Is c is a middle level language?
What is the purpose of the preprocessor directive error?
What are the types of bitwise operator?
What is difference between array and structure in c?
What is meant by type specifiers?
What is static and auto variables in c?
How do you define structure?
How can a process change an environment variable in its caller?
Can a function be forced to be inline? Also, give a comparison between inline function and the C macro?
What is the significance of an algorithm to C programming?