1,347 views
0 0 votes
What will be the output of the following C program?

#define b ++a

void main()

{

     char a=2689;

    printf(“%d”, b);

}

1 Answer

Position:
Show:

Related questions

9 9 votes
6 6 answers
995
995 views
GO Classes asked Jul 25, 2025
995 views
#include <stdio.h void fun() { static int count = 0; count++; printf("%d ", count); } int main() { for (int i = 0; i < 3; i++) fun(); return 0; }What is the output of the...
6 6 votes
3 3 answers
691
691 views
GO Classes asked Jul 25, 2025
691 views
Given the pseudocode below for the function remains(), which of the following statements is true about the output, if we pass it a positive integer $n>2$ ? int remains(in...
7 7 votes
4 4 answers
753
753 views
GO Classes asked Jul 19, 2025
753 views
int arr[ ]={1, 2, 3, 4} int count; incr( ) {return ++count;} main( ) { arr[count++]=incr( ); printf("arr[count]=%d\n", arr[count]); }The value printed by the above progra...