#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 |
What is a floating point in c?
what is the use of pointers
how does a general function , that accepts an array as a parameter, "knows" the size of the array ? How should it define it parameters list ?
Can main () be called recursively?
where does malloc() function get the memory?
When you call malloc() to allocate memory for a local pointer, do you have to explicitly free() it?
WAP to find that given no is small or capital
Write a program in c to replace any vowel in a string with z?
Tell us the difference between these two : #include"stdio.h" #include<stdio.h> define in detial.
Find Error if any in below code, Justify ur answer: struct xx { int a; struct yy { char c; struct xx* p; } struct yy* q; }
write a c code "if you give a any decimal number then print that number in english alphabet"? ex: i/p: 552 o/p: five hundred fifty two ...
What are formal parameters?