Monday, May 14, 2007

Campus_11

Earn 1860 Rs/Month by reading SMS

Today's Winner are

Deepak (from United College, Allahabad)

1. main()
{
int x=20;
{
int x=10;
printf(“%dn”,x);
}
printf(“%dn”,x);
}

Ans: 10
20

2. main()
{
int x=5;
x = x++;
printf (“%dn”,x);
}

Ans: 5

3. main()
{
int x=10;
printf(“%d %d”, ++x, ++x)
}

Ans: 12 11

4. What is the output of the following program if its command line argument were …
Sample 1 5 7

main(int argc, char *argv[])
{
int x;
x= argv[1] + argv[2] +argv[3]);
printf (“%d”, x);
}

Ans: Will show error because compiler treats 1 5 7 as characters array

5. # define VOLDEMORT he_who_must_not_be_names
main()
{
printf(“VOLDEMORT”);
}

Ans VOLDEMORT

Imprtant:
Send answer of Campus_11 (C Question) top 10 right answer sender's name will be published on main page of sandeeoinfo.com

so send your answer quickly.

Process to send answer
Send your answer along with your name and your college name to sandeepinfo@yahoo.co.in

Join http://groups.yahoo.com/group/campus_online/ for more updated information

Earn 1860 Rs/Month by reading SMS

1 comment:

Unknown said...

HI,ill give 5 star to this website it provides the latest bank exam question papers new and last year both.