What would be the output of this program.

Thread Starter

dileepchacko

Joined May 13, 2008
109
Hi All


What would be the output of this program.


main( )
{
struct employee
{
char name[25] ;
int age ;
float bs ;
} ;
struct employee e ;
strcpy ( e.name, "Hacker" ) ;
age = 25 ;
printf ( "\n%s %d", e.name, age ) ;
}





-- Best RegardsDileep Chacko
 

Mark44

Joined Nov 26, 2007
628
Why don't you compile it and see for yourself?

BTW, it isn't complete. One thing that's missing is a preprocessor #include directive for the headers that contain the declarations for printf and strcpy.
 
Last edited:
Top