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);
}
Answers were Sorted based on User's Feedback
Answer / 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 |
What is the explanation for cyclic nature of data types in c?
what is the difference between declaration and definition of a variable or function ?
fn f(x) { if(x<=0) return; else f(x-1)+x; }
what would be the output of the following prog? Justify your answer? main() { unsigned char ch; unsigned char i; ch = -255; printf("%d",ch); i = -1; printf("%d",i); }
marge linklist
Hai why 'c' is the middle language
What is pivot in c?
what will be the output for the following main() { printf("hi" "hello"); }
Is c functional or procedural?
Explain how are portions of a program disabled in demo versions?
What is the difference between malloc calloc and realloc in c?
Explain how do you declare an array that will hold more than 64kb of data?