#include<stdio.h>
main(0
{
printf("\n %d %d %d",sizeof(3),sizeof("3"),sizeof(3));
}

Answer Posted / abhishek kumar verma

you have made a typing mistake if code will be this

#include<stdio.h>
main()
{
printf("\n %d %d %d",sizeof(3),sizeof("3"),sizeof(3));
}

then output will be 4 2 4
because in first it will print the size of an integer and in second it will print the size of an string and in third it will print the size of integer again .

Is This Answer Correct ?    4 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to set file pointer to beginning c?

662


Which are low level languages?

629


What is the use of function overloading in C?

673


What is 2 d array in c?

549


How do you redirect a standard stream?

618






write a c program to find the largest and 2nd largest numbers from the given n numbers without using arrays

1779


What is #include stdio h and #include conio h?

593


an expression contains relational operators, assignment operators, and arithmatic operstors. In the absence of parentheses, they will be evaluated in which of the following order a) assignment, relational, arithematic b) arithematic, relational, assignment c) relational, arithematic, assignment d) assignment, arithematic, relational

805


How was c created?

586


What is a sequential access file?

644


What are multibyte characters?

642


Is c is a high level language?

614


Explain how to reverse singly link list.

603


How can you find the day of the week given the date?

609


is it possible to create your own header files?

631