You are not logged in.

#1 2015-09-14 06:08:26

hasnain
Administrator
From: Chichawatni
Registered: 2014-10-13
Posts: 8,355
Website

Compiling And Running Result:

http://interviewquestionsanswers.org/quiz/C-Programming http://interviewquestionsanswers.org/qu … e-Function

Directions:
What is the result of compiling and running this code?

Question:
main()
{
      char string[] = "Hello World";
      display(string);
}

void display(char *string)
{
      printf("%s", string);
}

Option A):
will print garbage value
Option B):
will print Hello World
Option C):
None
Option D):
Compilation Error

Correct Answer is Option D):
Compilation Error


Failure is the first step towards seccess.

2015-09-14 06:08:26

Advertisement
Ads By Google

Re: Compiling And Running Result:



Board footer