73. Predict the output or error(s) of the following c code

1
2
3
4
5
6
7
#include "stdio.h"
main()
{
	register i=5;
    char j[]= "hello";                     
    printf("%s  %d",j,i);
}

Click here to view the answer

One Response to “73. Predict the output or error(s) of the following c code”

  1. The output will be:

    hello 5

    where the command line prompt will be right after the “5”.

    Is this a trick question or something?

    Reply

Leave a Reply