You are not logged in.

#1 2015-09-12 06:58:28

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

Sample Code:

C Programming Quizzes C Language Pointer

Directions:
char *ptr;
char myString[] = "abcdefg";
ptr = myString;
ptr += 5;

Question:
what string does ptr point to in the sample code above?

Option A):
cdefg
Option B):
efg
Option C):
defg
Option D):
fg

Correct Answer is Option D):
fg


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

2015-09-12 06:58:28

Advertisement
Ads By Google

Re: Sample Code:



Board footer