main()
{
printf("\n %d %d %d",sizeof('3'),sizeof("3"),sizeof(3));
}
Answer Posted / manjulatha
'3' is a character so it take 1 byte
"3" is a string containing 2 characters 3 and \0 so it takes
2bytes
3 is a integer and it takes 4 bytes
so answer is 1 2 4
Is This Answer Correct ? | 15 Yes | 6 No |
Post New Answer View All Answers
What is a static variable in c?
What is data structure in c language?
What does c mean in basketball?
How does sizeof know array size?
What is the use of bitwise operator?
Explain what is a stream?
What is a newline escape sequence?
Is c object oriented?
What is data type long in c?
What is methods in c?
Why do we use null pointer?
Explain what are the advantages and disadvantages of a heap?
Iam a B.Tech graduate and completed my engineering in 2009, from 2005 to 2009 and after that i had done nothing.Now i want to do job and get into BPO field . Friends give me suggestions as what to say in interview... if they ask me that what would you had done ... these many years without doing job ??????? pls urgent
Using functions, write a program that multiplies two arrays. Use the following functions: - Function ReadArray - Function MultiplyArrays - Function DisplayArrays
How pointer is different from array?