What happens if you try to compile and run program?

Last Updated on April 30, 2022 by Admin 2

What happens if you try to compile and run program?

#include <stdio.h>
int fun(){
   int a;
   return ++a;
}  
int main()
{
   printf("%d", fun());
   return 0;
}
  • the program outputs 1
  • the program outputs 0
  • the program outputs a
  • the program causes an error
0 0 votes
Article Rating
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments