You are not logged in.

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

husnain
User RankUser RankUser RankUser RankUser RankUser Rank
Administrator
From: Chichawatni,Pakistan
Registered: 2014-10-03
Posts: 8,129
Website

Compiling And Running Result:

C Programming Quizzes C Language 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


You cannot discover the new oceans unless you have the courage to lose the sight of the shore.

2015-09-14 06:08:24

Advertisement
Ads By Google

Re: Compiling And Running Result:



Board footer