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 / pankaj khurana
size of a:: 4
size of 2.0::4
| Is This Answer Correct ? | 0 Yes | 2 No |
Post New Answer View All Answers
What is a nested formula?
Why do we need a structure?
1. Write a function to display the sum of two numbers in the following ways: By using (i) pass by value (ii) pass by address a. function with argument and with return value b. function with argument and without return value c. without argument , with return value d. without argument , without return value Note: Use pass by address.
Can two or more operators such as and be combined in a single line of program code?
Can we compile a program without main() function?
.main() { char *p = "hello world!"; p[0] = 'H'; printf("%s",p); }
How will you declare an array of three function pointers where each function receives two ints and returns a float?
Why can arithmetic operations not be performed on void pointers?
What is the default value of local and global variables in c?
Differentiate between a structure and a union.
How can I find the modification date and time of a file?
Can you write the function prototype, definition and mention the other requirements.
What is a header file?
How can a string be converted to a number?
Explain the use of keyword 'register' with respect to variables.