You are not logged in.

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

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

Sample Code:

http://interviewquestionsanswers.org/quiz/C-Programming http://interviewquestionsanswers.org/qu … ge-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


Failure is the first step towards seccess.

2015-09-12 06:58:30

Advertisement
Ads By Google

Re: Sample Code:



Board footer