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
In which header file is the null macro defined?
Whats s or c mean?
Subtract Two Number Without Using Subtraction Operator
What is static and auto variables in c?
Explain how to reverse singly link list.
the number of measuring units from a arbitrary starting point in a record area or control block to some other point a) branching b) recording pointer c) none d) offset
Write the program with at least two functions to solve the following problem. The members of the board of a small university are considering voting for a pay increase for their 10 faculty members. They are considering a pay increase of 8%. Write a program that will prompt for and accept the current salary for each of the faculty members, then calculate and display their individual pay increases. At the end of the program, print the total faculty payroll before and after the pay increase, and the total pay increase involved.
Explain what would happen to x in this expression: x += 15; (assuming the value of x is 5)
How do you define a function?
What is an expression?
Can we access array using pointer in c language?
What is the size of a union variable?
Write a function that will take in a phone number and output all possible alphabetical combinations
Why we use void main in c?
cavium networks written test pattern ..