DIR Return Create A Forum - Home
---------------------------------------------------------
techsuns
HTML https://techsuns.createaforum.com
---------------------------------------------------------
*****************************************************
DIR Return to: UGC NET
*****************************************************
#Post#: 337--------------------------------------------------
what is the output of this??
By: satya Date: December 4, 2012, 11:48 pm
---------------------------------------------------------
What would be the output of the following program, if run from
the command line as “myprog 1 2 3” ?
main (int argc, char ∗ argv[ ])
{
int i ;
i = argv[1] + argv[2] + argv[3] ;
printf (“% d”, i) ;
}
#Post#: 340--------------------------------------------------
Re: what is the output of this??
By: nagendra Date: December 5, 2012, 3:18 am
---------------------------------------------------------
invalid operator '+' for char* ::)
#Post#: 347--------------------------------------------------
Re: what is the output of this??
By: kranthipls Date: December 5, 2012, 3:35 am
---------------------------------------------------------
I think what Nagi said is correct....
*****************************************************