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
How will you divide two numbers in a MACRO?
What does %d do?
what is the differnce between programing langauge and tool? is sas is a programing langauge r tool?
What are the types of pointers in c?
How can you increase the size of a statically allocated array?
How are strings stored in c?
What are the advantages and disadvantages of pointers?
what are the 10 different models of writing an addition program in C language?
What is a sequential access file?
What is the use of #define preprocessor in c?
How can I generate floating-point random numbers?
What is the difference between text files and binary files?
Explain what is the concatenation operator?
What are unions in c?
Are local variables initialized to zero by default in c?