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 / maruthi
Answer:0,0
Because if 1 element is initialised in structure or array
the remaining elements are initialised to 0 by default.
| Is This Answer Correct ? | 8 Yes | 2 No |
Post New Answer View All Answers
What standard functions are available to manipulate strings?
write a c program to find the sum of five entered numbers using an array named number
Which built-in library function can be used to match a patter from the string?
Why do we need a structure?
How can a process change an environment variable in its caller?
What is pointers in c?
What does dm mean sexually?
What are type modifiers in c?
Explain the use of 'auto' keyword in c programming?
How can I call system when parameters (filenames, etc.) Of the executed command arent known until run time?
Function which gives a pointer to a binary trees const an integer value at each code, return function of all the nodes in binary tree.?
while initialization of array why we use a[][2] why not a[2][]...?
Is file a keyword in c?
What are the valid places to have keyword “break”?
How can I copy just a portion of a string?