.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

if function is declared as static in one source file, if I would like to use the same function in some other source file...is it possible....how ?

2 Answers   NetApp,


how to TOGGLE Nth bit of variable in a MACRO

1 Answers   NDS,


please explain clearly about execution of c program in detail,in which stage are the printf sacnf getting into exeecutable code

0 Answers   Mind Tree,


main() { int a; a=++100; printf("%d",a); getch(); }

4 Answers  


why the execution starts from main function

9 Answers  






while running a program, i got the msg that press return key to exit.what that mean in C as there are no such options as far i know.

1 Answers   TCS,


‘SAVEPOINT’ and ‘ROLLBACK’ is used in oracle database to secure the data comment. Give suitable examples of each with sql command.

0 Answers  


what are the program that using a two dimensional array that list the odd numbers and even numbers separately in a given 10 inputs values

0 Answers   College School Exams Tests,


what is the difference between global variable & static variable declared out side all the function in the file.

2 Answers  


who is first prime minister in india??

8 Answers   Wipro,


difference between memcpy and strcpy

1 Answers  


Write a program that will read the input of any number of digits n in a row of shafh showing the breakdown of the printing and printing figures by the recursive function.

0 Answers  





Categories