CP F&R Q23

0. The following program
main ()
{ int a = 4;
 change { a };
 printf ("%d", a);
}
change (a)
int a;
{
printf("%d", ++a);
}
outputs

  • Option : C
  • Explanation :
    change (a) , prints 5 but the value of 'a' in main ( ) is still 4. So main( ) will print 4.
Cancel reply

Your email address will not be published. Required fields are marked *


Cancel reply

Your email address will not be published. Required fields are marked *