Find the output of C programs
Program 1
kw.c
#include <stdio.h>
int main()
{
    int a = 5;
    printf("%d\n", ++a + ++a + ++a);
    int b = 5;
    printf("%d %d %d\n", ++b, ++b, ++b);
    return 0;
}
kodingwindow@kw:~$ gcc kw.c
kodingwindow@kw:~$ ./a.out 22 8 8 8 kodingwindow@kw:~$
What Next?
C Strings
Advertisement