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 |
Apart from dennis ritchie who the other person who contributed in design of c language.
What is difference between stdio h and conio h?
What does void main () mean?
In which header file is the null macro defined?
what is op? for(c=0;c=1000;c++) printf("%c",c);
write a program that types this pattern: 12345678987654321 12345678 87654321 1234567 7654321 123456 654321 12345 54321 1234 4321 123 321 12 21 1 1
2.Given the short c program that follows a. make a list of the memory variables in this program b.which lines of code contain operations that change the contents of memory? what are those operations? Void main( void) { Double base; Double height; Double area; Printf(“enter base and height of triangle :”); Scanf(“%lg”, &base); Scanf(“%lg”, &height); Area=base*height/2.0; Printf(“the area of the triangle is %g \n”,area); }
please explain clearly about execution of c program in detail,in which stage are the printf sacnf getting into exeecutable code
Why void main is used in c?
Is Exception handling possible in c language?
Write a program to use switch statement.
0 Answers Agilent, Integreon, ZS Associates,
What is uint8 in c?