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
write a c program to calculate sum of digits till it reduces to a single digit using recursion
Explain how can a program be made to print the name of a source file where an error occurs?
Distinguish between actual and formal arguments.
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
What are the types of variables in c?
What is the use of clrscr?
5 Write an Algorithm to find the maximum and minimum items in a set of ‘n’ element.
about c language
Explain what are the __date__ and __time__ preprocessor commands?
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
What are the functions to open and close file in c language?
What is Dynamic memory allocation in C? Name the dynamic allocation functions.
What is the use of a static variable in c?
what is the height of tree if leaf node is at level 3. please explain
What are the types of data structures in c?