[code:i36y16q2]#include<stdio.h>
main()
{
printf("I am going inside test function now\n");
test();
printf("\nNow I am back from test function\n");
}
test()
{
int a,b;
a=1
b=a+100;
printf("a is %d and b is %d",a,b);
}
[/code:i36y16q2]
My problem is with the test() function. A and B are declared, B is set to A+100...but A is not initialized. In fact, I couldn't even compile the code. Any suggestions?