+ 1
CAN ANYONE SUGGEST SOLUTION HERE PLS
#include<stdio.h> main() { printf("I am going inside test function now\n"); test(); printf("\nNow I am back from test function\n"); system("pause"); } test() { int a,b; a=1; b=a+100; printf("a is %d and b is %d",a,b); }
2 ответов
+ 1
You have to declare the function before the point you are gonna call it.
test();
int main()
{
printf("I am going inside test function now\n");
test();
printf("\nNow I am back from test function\n");
system("pause");
}
test()
{
int a,b;
a=1;
b=a+100;
printf("a is %d and b is %d",a,b);
}
0
First of all there are a lot of errors
But if you did not consider that then the answer is :
I am going inside test function now
a is 1 and b is 101
Now I am back from test function
Press any key to continue...