You are not logged in.
- Topics: Active | Unanswered
Pages:: 1
#1 2015-09-14 06:19:35
C Language Function Quiz Question.
C Programming Quizzes C Language Function
Directions:
char* myfunc(char *ptr)
{
ptr+=3;
return(ptr);
}
void main()
{
char *x, *y;
x = "EXAMVEDA";
y = myfunc(x);
printf("y=%s", y);
}
Question:
What will be printed when the sample code above is executed?
Option A):
y=VEDA
Option B):
y=MVEDA
Option C):
y=EXAMVEDA
Option D):
y=EDA
Correct Answer is Option B):
y=MVEDA
Failure is the first step towards seccess.
Offline
2015-09-14 06:19:35
- Advertisement
- Ads By Google
Re: C Language Function Quiz Question.
\n
Pages:: 1