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 purpose of void in c?
What is the value of c?
Explain bitwise shift operators?
Explain how can I read and write comma-delimited text?
Write a function expand(s1,s2) that expands shorthand notations like a-z in the string s1 into the equivalent complete list abc...xyz in s2 . Allow for letters of either case and digits, and be prepared to handle cases like a-b-c and a-z0-9 and -a-z. z-a:zyx......ba -1-6-:-123456- 1-9-1:123456789987654321 a-R-L:a-R...L a-b-c:abbc
How to get string length of given string in c?
WRITE A CODE IN C TO SEARCH A FILE FROM NOTEPAD FILE.
write a programme to convert temperature from farenheit to celcius?
pgm to find number of words starting with capital letters in a file(additional memory usage not allowed)(if a word starting with capital also next letter in word is capital cann't be counted twice)
Hai why 'c' is the middle language
write a c program to do the following: a) To find the area of a triangle. b) To convert the temperature from Fahrenheit to Celsius. c) To convert the time in hours : minutes : seconds to seconds.
Expand the following LKB BKL FFG