.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

What is bubble sort in c?

0 Answers  


Explain high-order bytes.

0 Answers  


Create a simple code fragment that will swap the values of two variables num1 and num2.

0 Answers  


What are extern variables in c?

0 Answers  


What is function pointer and where we will use it

2 Answers   Infosys, NetApp,






void main(int n) { if(n==0) return; main(--n); printf("%d ",n); getch(); } how it work and what will be its output...............it any one know ans plz reply

0 Answers  


How to write a code for random pick from 1-1000 numbers? The output should contain the 10 numbers from the range 1-1000 which should pick randomly, ie ,for each time we run the code we should get different outputs.

12 Answers   NetApp,


Write a program that takes a 5 digit number and calculates 2 power that number and prints it

5 Answers   ABS, Accenture, HCL, Infosys, Infotech, SoftSolve, Software India, TCS, Vertex, Vimukti Technologies,


Explain what is the difference between far and near ?

0 Answers  


parkside's triangle.. create a program like this.. enter the size: 6 enter the seed: 1 output: 1 23 456 7891 23456 789123 sample2: enter the size: 5 enter the seed: 3 output: 3 45 678 9123 45678 parkside should not exceed 10 while its seed should only be not more than 9..

4 Answers  


How can I run c program?

0 Answers  


How do I access command-line arguments?

2 Answers   Bosch, Wipro,


Categories