#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
Write a program to check whether a number is prime or not using c?
What is array in C
the maximum length of a character constant can be a) 1 character b) 8 characters c) 256 chaacters d) 125 characters
int i=3; this declaration tells the C compiler to a) reserve space in memory to hold the integer value b) associate the name i with this memory location c) store the value 3 at this location d) all the above
What is New modifiers?
design and implement a data structure and performs the following operation with the help of file (included 1000 student marks in 5 sub. and %also) 1.how many students are fail in all 5 subjects (if >35) 2. delete all student data those are fail in all 5 subjects. 3. update the grace marks (5 no. if exam paper is 100 marks) 4. arrange the student data in ascending order basis of marks. 5.insert double of deleted students with marks in the list.
Explain what will the preprocessor do for a program?
Why doesnt this code work?
In a byte, what is the maximum decimal number that you can accommodate?
Write a program to print “hello world” without using semicolon?
Is there a way to jump out of a function or functions?
How can you allocate arrays or structures bigger than 64K?
How do you determine a file’s attributes?
Explain is it better to bitshift a value than to multiply by 2?
What are the restrictions of a modulus operator?