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 |
. Explain the differences between fork() and exec() in C
How does #define work?
Why Modern OS are interrupt driven?Give an example
Where can I get an ansi-compatible lint?
enum { SUNDAY, MONDAY, TUESDAY, }day; main() { day =20; printf("%d",); getch(); } what will be the output of the above program
swap two integer variables without using a third temporary variable?
can we print any string without using terminator?
Is a pointer a kind of array?
write C code to reverse a string such that if i/p is "abc defg hij klmno pqrs tuv wxyz" and the o/p should be "cba gfed jih onmlk srqp vut zyxw"
What is volatile variable how do you declare it?
Are enumerations really portable?
What are the features of c languages?