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

Thursday, September 15th, 2011
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

Avatar of Peter Vegas

Author Name :
Peter Vegas

Total : 1 Comment


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

  1. John says:

    The output will be:

    hello 5

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

    Is this a trick question or something?

Leave a Reply

Question and Answer
C/C++ Unix & Linux Wordpress
Source codes
C C++ Java

Free email signup

Email: