.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

Design a program using an array that lists even numbers and odd numbers separately from the 12 numbers supplied by a user.

8 Answers  


Please write me a program to print the first 50 prime numbers (NOT between the range 1 -50)

5 Answers   IBM, KJH,


Differentiate b/w Modify and Update commands giving example.

1 Answers  


What is an volatile variable?

15 Answers   HP,


How to convert decimal to binary in C using recursion??

4 Answers   HP, IBM,






What are the uses of pre-processor directives?

2 Answers  


enum DAY { sunday, monday, tuesday }; enum EDAYS { friday, saturday, sunday }; void main() { int i =0; if( i == sunday) { printf("%d",i); } } what would be the output?

4 Answers   TCS,


why you will give me a job in TCS.

7 Answers   TCS,


write a program to swap two numbers without using temporary variable?

3 Answers  


what is software?

7 Answers   Wipro,


1. main() { printf("%d",printf("HelloSoft")); } Output?

3 Answers   HCL,


I need a help with a program: Write a C program that uses data input in determining the whole of points A and a whole of circles B. Find two points in A so that the line which passes through them, cut through the maximum number of circles.

0 Answers   TCS,





Categories