what would be the output of the follwing
struct st
{
char name[20];
int i;
float f;
};
main()
{
struct st emp = {"forum"};
printf("%d %f",emp.i,emp.f);
}
Answer Posted / karthik
0, 0.00
Is This Answer Correct ? | 3 Yes | 0 No |
Post New Answer View All Answers
What is the return type of sizeof?
main(){char *str;scanf("%s",str);printf("%s",str); }The error in the above program is: a) Variable 'str' is not initialised b) Format control for a string is not %s c) Parameter to scanf is passed by value. It should be an address d) none
What is an example of structure?
What are the different types of pointers used in c language?
What is the difference between array and structure in c?
How can I access an I o board directly?
How can I do serial ("comm") port I/O?
What is the difference between void main and main in c?
Explain indirection?
How do I copy files?
What are the two types of structure?
Explain the difference between null pointer and void pointer.
The number of bytes of storage occupied by short, int and long are a) 2, 2 and 4 b) 2, 4 and 4 c) 4, 4 and 4 d) none
What is the function of volatile in c language?
What is call by value in c?