main()
{
printf("\n %d %d %d",sizeof('3'),sizeof("3"),sizeof(3));
}
wat is the o/p and how?
Answer Posted / vinay kabra
Answer is : 1 2 2
because
sizeof('3')takes 3 as character and so, size of a character
is 1 byte
sizeof("3") takes 3 as a string so, here strinf contains one
character 3 and end character '\0'. so, sizeof("3") gives o/p 2
and
sizeof(3) takes 3 as integer so size of an integer is 2 bytes
| Is This Answer Correct ? | 18 Yes | 24 No |
Post New Answer View All Answers
what is the height of tree if leaf node is at level 3. please explain
If the size of int data type is two bytes, what is the range of signed int data type?
Which driver is a pure java driver
shorting algorithmS
I have written a pro*C program to fetch data from the cursor. where in i have used the concept of BULK FETCH.... each FETCH statement is taking lots of time to fetch specified number of rows at...
2) Write a program that will help Air Traffic Control for an airport to view the sequence of flights ready for take-off. The airport can accommodate 10 flights waiting for take-off at any point in time. Each flight has a unique 3 digit numeric identifier. Each time a flight takes-off, Air Traffic Control adds a flight to the waitlist. Each time a flight is added to the waitlist, the list of flights waiting to take-off must be displayed. When a flight is cleared for take-off, Air Traffic Control removes the flight from the waitlist. Each time a flight takes-off, the list of flights waiting to take-off must be displayed. Sequence of take-off is the sequence of addition to the waitlist
What is indirection in c?
How do you convert a decimal number to its hexa-decimal equivalent.Give a C code to do the same
Can a program have two main functions?
FILE PROGRAMMING
What are different types of operators?
how can use subset in c program and give more example
How can I direct output to the printer?
What is the general form of a C program?
how many key words availabel in c a) 28 b) 31 c) 32