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 / rama krishna sidhartha

0,0.000000

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the similarities between c and c++?

605


What is operator promotion?

635


What are the various types of control structures in programming?

634


Can a pointer be volatile in c?

539


Where can I get an ansi-compatible lint?

646






Write program to remove duplicate in an array?

604


Explain how are 16- and 32-bit numbers stored?

789


What are valid operations on pointers?

675


What is keyword in c?

608


Differentiate between functions getch() and getche().

627


A collection of functions,calls,subroutines or other data a) library b) header files c) set of files d) textfiles

651


write a program fibonacci series and palindrome program in c

633


The program will first compute the tax you owe based on your income. User is prompted to enter income. Program will compute the total amount of tax owed based on the following: Income Tax 0 - $45,000 = 0.15 x income $45,001 - $90,000 = 6750 + 0.20 x (income – 45000) $90,001 - $140,000 = 15750 + 0.26 x (income – 90000) $140,001 - $200,000 = 28750 + 0.29 x (income – 140000) Greater than $200,000 = 46150 + 0.33 x (income – 200000) Dollar amounts should be in dollars and cents (float point numbers with two decimals shown). Tax is displayed on the screen.

1071


write a program to find out prime number using sieve case?

1646


Tell me what are bitwise shift operators?

662