#include<stdio.h>
main(0
{
printf("\n %d %d %d",sizeof(3),sizeof("3"),sizeof(3));
}
Answers were Sorted based on User's Feedback
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 |
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 |
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 |
#include<stdio.h> main() { char *p1; char *p2; p1=(char *) malloc(25); p2=(char *) malloc(25); strcpy(p1,"Ramco"); strcpy(p2,"Systems"); strcat(p1,p2); printf("%s",p1); } Tell me the output?
Explain how can you tell whether a program was compiled using c versus c++?
What is the size of enum in c?
Which is the memory area not included in C program? give the reason
related to rdbms query .
Difference between for loop and while loop?
Write a program to add a given duration with time(24hrs format)
What is the output of the following program main();{printf ("chennai""superkings"}; a. Chennai b. superkings c. error d. Chennai superkings
What is null character in c?
Can you explain the four storage classes in C?
What is meant by int main ()?
what is the difference between normal variables and pointer variables..............
15 Answers HP, Infosys, Satyam, Vivekanand Education Society,