#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

what is the difference between getch() and getchar()?

10 Answers   Huawei, Infosys,


The purpose of this exercise is to benchmark file writing and reading speed. This exercise is divided into two parts. a). Write a file character by character such that the total file size becomes approximately >10K. After writing close the file handler, open a new stream and read the file character by character. Record both times. Execute this exercise at least 4 times b). Create a buffer capable of storing 100 characters. Now after generating the characters, first store them in the buffer. Once the buffer is filled up, store all the elements in the file. Repeat the process until the total file size becomes approximately >10K.While reading read a while line, store it in buffer and once buffer gets filled up, display the whole buffer. Repeat the exercise at least 4 times with different size of buffer (50, 100, 150 …). Records the times. c). Do an analysis of the differences in times and submit it in class.

0 Answers  


The file stdio.h, what does it contain?

0 Answers  


What are the 5 organizational structures?

0 Answers  


What are categories used for in c?

0 Answers  






why little endian and big endian came?y they using differently? y they not used commonly ?wt is application of little and big ?

1 Answers  


what is the advantage of software development

1 Answers  


While(1) { } when this loop get terminate is it a infinite loop?

5 Answers  


How can you access memory located at a certain address?

0 Answers  


5) Write a program that takes a 3 digit number n and finds out whether the number 2^n + 1 is prime, or if it is not prime find out its factors.without using big int and exponential function

1 Answers   TCS,


Does * p ++ increment p or what it points to?

0 Answers  


What is file in c language?

0 Answers  


Categories