#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
What is the use of header?
What are keywords in c with examples?
When should you use a type cast?
What is the use of getch ()?
What is the difference between functions getch() and getche()?
How do you convert strings to numbers in C?
What is pointer to pointer in c with example?
Write a program in "C" to calculate the root of a quadratic equation ax^2+bx+c=0, where the value of a,b & c are known.
When can you use a pointer with a function?
What is scope and lifetime of a variable in c?
What is const keyword in c?
What is typeof in c?
program to find out date after adding 31 days to a date in the month of febraury also consider the leap year
What's the difference between constant char *p and char * constant p?
Are there constructors in c?