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

Answers were Sorted based on User's Feedback



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

Answer / nithya

the above code output is

syntax error

this code will be change from

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

the out put is

222

Is This Answer Correct ?    9 Yes 1 No

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

Answer / a.c.pattanaik

code is error due to declaration

if code is this
main()
{
printf("\n %d %d %d",sizeof(2),sizeof("a"),sizeof(2));
}

Ans-4 2 4

Is This Answer Correct ?    9 Yes 5 No

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

Answer / ajay

syntax error

Is This Answer Correct ?    1 Yes 1 No

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

Answer / 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

More C Interview Questions

How does selection sort work in c?

0 Answers  


Is it better to bitshift a value than to multiply by 2?

0 Answers  


What does the c in ctime mean?

0 Answers  


What is the difference between text and binary modes?

0 Answers  


any "C" function by default returns an a) int value b) float value c) char value d) a & b

0 Answers  






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

0 Answers  


Is there a way to have non-constant case labels (i.e. Ranges or arbitrary expressions)?

0 Answers  


Program to find the sum of digits of a given number until the sum becomes a single digit. (e.g. 12345=>1+2+3+4+5=15=>1+5=6)

0 Answers   InterGraph,


write a program to display all prime numbers

0 Answers  


int main() { int i=-1,j=-1;k=0,l=2,m; m=i++&&j++&&k++||l++; printf("%d%d%d%d%d",i,j,k,l,m); }

3 Answers   HCL,


wat is the meaning of c?

9 Answers   CTS, IBM, Wipro,


What is the mean of function?

0 Answers  


Categories