You are not logged in.
- Topics: Active | Unanswered
Pages:: 1
#1 2015-09-12 06:57:35
Sample Code:
http://interviewquestionsanswers.org/quiz/C-Programming http://interviewquestionsanswers.org/qu … ge-Pointer
Directions:
What will be printed when the sample code above is executed?
Question:
char* myfunc(char *ptr)
{
ptr+=3;
return(ptr);
}
void main()
{
char *x, *y;
x = "EXAMVEDA";
y = myfunc(x);
printf("y=%s", y);
}
Option A):
y=AMVEDA
Option B):
y=VEDA
Option C):
y=MVEDA
Option D):
y=EXAMVEDA
Correct Answer is Option C):
y=MVEDA
Failure is the first step towards seccess.
Offline
2015-09-12 06:57:35
- Advertisement
- Ads By Google
Re: Sample Code:
Pages:: 1