Find the output?
void main()
{float a=2.0;
printf("\nSize of a ::%d",sizeof(a));
printf("\nSize of 2.0 ::%d",sizeof(2.0));}
Answer Posted / chandrashekhar
In turbo c
a::2
2.0::2
GCC
a::4
2.0::2
| Is This Answer Correct ? | 0 Yes | 3 No |
Post New Answer View All Answers
What is the maximum length of an identifier?
the 'sizeof' operator reported a larger size than the calculated size for a structure type. What could be the reason?
Dont ansi function prototypes render lint obsolete?
Can you explain what keyboard debouncing is, and where and why we us it? please give some examples
write an interactive C program that will encode or decode a line of text.To encode a line of text,proceed as follows. 1.convert each character,including blank spaces,to its ASCII equivalent. 2.Generate a positive random integer.add this integer to the ASCII equivalent of each character.The same random integer will be used for the entire line of text. 3.Suppose that N1 represents the lowest permissible value in the ASCII code,and N2 represents the highest permissible value.If the number obtained in step 2 above(i.e.,the original ASCII equivalent plus the random integer)exceeds N2,then subtract the largest possible multiple of N2 from this number,and add the remainder to N1.Hence the encoded number will always fall between N1 and N2,and will therefore always represent some ASCII character. 4.Dislay the characters that correspond to the encoded ASCII values. The procedure is reversed when decoding a line of text.Be certain,however,that the same random number is used in decodingas was used in encoding.
How do I round numbers?
Do pointers take up memory?
What are the advantages of union?
How can you determine the size of an allocated portion of memory?
What is the difference between NULL and NUL?
printf(), scanf() these are a) library functions b) userdefined functions c) system functions d) they are not functions
Write a program to print fibonacci series using recursion?
Explain how do you print an address?
How can I trap or ignore keyboard interrupts like control-c?
What are local static variables? How can you use them?