#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


Please Help Members By Posting Answers For Below Questions

Write a program to implement queue.

892


What is static memory allocation?

857


how do you programme Carrier Sense Multiple Access

1738


What is pointers in c?

904


What is the -> in c?

800


What is struct node in c?

827


c program for searching a student details among 10 student details

1891


What is f'n in math?

838


What is function and its example?

915


write a programming in c to find the sum of all elements in an array through function.

1932


Why do we need arrays in c?

827


What is the argument of a function in c?

800


What is string function in c?

760


What is the use of in c?

767


How do you write a program which produces its own source code as output?

854