Any thoughts on this? - TechRepublic
General discussion
August 2, 2006 at 04:16 AM
stargazerr

Any thoughts on this?

by stargazerr . Updated 19 years, 10 months ago

void main(void)
{
int i=10;

func();
printf(“i = %d”,i);
}

void func(void)
{
/* Your code goes here, change i to 100 */
}

// No global declarations allowed, you are allowed to add ur code only in the space provided

[b]I was thinking about declaring another local variable and prontf and exit the program[/b], but obviously, thats too easy.

]:)

This discussion is locked

All Comments