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
Explain the ternary tree?
What is the heap?
What is property type c?
What is the use of linkage in c language?
how to execute a program using if else condition and the output should enter number and the number is odd only...
What is the value of c?
Write a c program to build a heap method using Pointer to function and pointer to structure ?
What is string length in c?
Hi can anyone tell what is a start up code?
What is calloc malloc realloc in c?
What is the advantage of an array over individual variables?
What are pointers? What are stacks and queues?
If I have a char * variable pointing to the name of a function ..
Write a program to reverse a given number in c?
What is a ternary operator in c?