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


Please Help Members By Posting Answers For Below Questions

What is a static variable in c?

677


What is data structure in c language?

616


What does c mean in basketball?

569


How does sizeof know array size?

638


What is the use of bitwise operator?

699






Explain what is a stream?

617


What is a newline escape sequence?

676


Is c object oriented?

553


What is data type long in c?

641


What is methods in c?

655


Why do we use null pointer?

617


Explain what are the advantages and disadvantages of a heap?

607


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

1436


Using functions, write a program that multiplies two arrays. Use the following functions: - Function ReadArray - Function MultiplyArrays - Function DisplayArrays

1905


How pointer is different from array?

589