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 real difference between arrays and pointers?
27 Answers Hexaware, Logic Pro, TCS,
process by which one bit patten in to another by bit wise operation is? (a) masking, (b) pruning, (c) biting, (d) chopping,
Explain what is the difference between a string copy (strcpy) and a memory copy (memcpy)? When should each be used?
#define DCHAR char* typedef char* TCHAR; if using these following variables will be declared like DCHAR ch1, ch2; TCHAR ch3, ch4; then what will be types of ch1, ch2, ch3 and ch4?
Was 2000 a leap year?
How can I generate floating-point random numbers?
How to add two numbers without using semicolon n c????
Write a program for print infinite numbers
When I tried to go into a security sites I am denied access and a message appeared saying 'applet not initialize'. How can I rectify this problem.
accept character from keyboard untill the user presses the enter key.If the user enters any character other than upper case(A-Z)alphabets program should stop taking any input
How pointer is benefit for design a data structure algorithm?
Explain how do you view the path?