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

write a c program to calculate sum of digits till it reduces to a single digit using recursion

2709


Explain how can a program be made to print the name of a source file where an error occurs?

676


Distinguish between actual and formal arguments.

581


Write a program to compute the similarity between two strings - The program should get the two strings as input - Then it will output one single number which is the percentage of similarity between the two strings

2238


What are the types of variables in c?

572






What is the use of clrscr?

585


5 Write an Algorithm to find the maximum and minimum items in a set of ‘n’ element.

1576


about c language

1592


Explain what are the __date__ and __time__ preprocessor commands?

584


please help me..... please codes and flowchart plz turbo c lang po yan.....please asap response... 3. Make an astrology program. The user types in his or her birthday (month, day, and year as integer), and the program responds with the user’s zodiac sign, horoscope, and other information related to it. If the user’s birth year falls into a leap year, your program should display an appropriate message for it. NOTES: Conditional Statements: it should be with graphics

2854


What are the functions to open and close file in c language?

721


What is Dynamic memory allocation in C? Name the dynamic allocation functions.

545


What is the use of a static variable in c?

582


what is the height of tree if leaf node is at level 3. please explain

1591


What are the types of data structures in c?

594