Find the output of C programs
Program 1
kw.c
Show OutputOutput
kodingwindow@kw:~$ gcc kw.c
kodingwindow@kw:~$ ./a.out 10 // a[2 + a[2]] + a[3] = a[5] + a[3] = 6 + 4 // a[1] = 2, a[2] = 3, a[5] = 6, a[3] = 4, hence the output is 10 kodingwindow@kw:~$
What Next?
C Functions
Advertisement