.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

Explain the differences between public, protected, private and internal.

2 Answers  


Who had beaten up hooligan "CHAKULI" in his early college days?

1 Answers  


Suppose I want to write a function that takes a generic pointer as an argument and I want to simulate passing it by reference. Can I give the formal parameter type void **, and do something like this? void f(void **); double *dp; f((void **)&dp);

1 Answers  


Why cd or dvd are round why not square.

1 Answers  


wht is the difference between KPO and BPO ?

2 Answers   Infosys, Accenture, HCL, BPO, HCK,






Convert the following expression to postfix and prefix (A+B) * (D-C)

3 Answers   Satyam,


illustrate the use of address operator and dereferencing operator with the help of a program guys plzzz help for this question

0 Answers  


while initialization of array why we use a[][2] why not a[2][]...?

0 Answers   Aptech,


a=0; b=(a=0)?2:3; a) What will be the value of b? why b) If in 1st stmt a=0 is replaced by -1, b=? c) If in second stmt a=0 is replaced by -1, b=?

6 Answers   Geometric Software,


#define f(x) main() { printf("\n%d",f(2+2)); }

5 Answers  


there is two conditions , 1. while using for loop for printing 1 to 50 no's simulteneous 2. while using printf functios for printing 1 to 50 no's simulteneous with or without using variables who will take more time for compiling and execution? explain in details with reason?

1 Answers  


what is the difference between arrays and linked list

26 Answers   MAHINDRA, Tech Mahindra, Wipro,





Categories