.find the output of the following program?
char*myfunc(char*ptr)
{
ptr +=3;
return (ptr);
}
int main()
{
char*x,*y;
x="HELLO";
y=myfunc(x);
printf("y = %s
",y);
return 0;
}


No Answer is Posted For this Question
Be the First to Post Answer

Post New Answer

More C Interview Questions

Find the middle node in the linked list?? (Note:Do not use for loop, count and count/2)

6 Answers   Subex,


Difference between exit() and _exit() function?

0 Answers  


What is pivot in c?

0 Answers  


Is python a c language?

0 Answers  


What will be the output of following program #include main() { int x,y = 10; x = y * NULL; printf("%d",x); }

1 Answers  






#include <stdio.h> int main() { int i; for (i=0;i<3;++i) { fork();fork(); } } How many processes are created when running this program (including the initial one)? Explain &#1567;&#1567;&#1567;

4 Answers  


Is array name a pointer?

0 Answers  


What does printf does?

0 Answers  


What does it mean when the linker says that _end is undefined?

0 Answers  


Can we use visual studio for c?

0 Answers  


Why does everyone say not to use scanf? What should I use instead?

0 Answers  


char *p="name"; printf(p);

1 Answers  


Categories