#include<stdio.h>
int main()
{
char *ptr;
char string[] = "How are you?";
ptr = string;
ptr += 4;
printf("%s",ptr);
return 0;
}

Answers were Sorted based on User's Feedback



#include<stdio.h> int main() { char *ptr; char string[] = "How are you?"; ptr =..

Answer / manish tiwari

It will increment the char pointer by 4 bytes and now ptr will point to 'a' inside string so it will print "are you?"

Is This Answer Correct ?    47 Yes 1 No

#include<stdio.h> int main() { char *ptr; char string[] = "How are you?"; ptr =..

Answer / satyarani

if int and return 0 is not there, then the output is are you?

Is This Answer Correct ?    13 Yes 1 No

#include<stdio.h> int main() { char *ptr; char string[] = "How are you?"; ptr =..

Answer / sakura

it should be "are you?are you?"

Is This Answer Correct ?    7 Yes 3 No

#include<stdio.h> int main() { char *ptr; char string[] = "How are you?"; ptr =..

Answer / abarna

The Ans is are You?

Is This Answer Correct ?    2 Yes 2 No

#include<stdio.h> int main() { char *ptr; char string[] = "How are you?"; ptr =..

Answer / subbu

It should be How are you?,

because the pgm didnt mention abt the ptr += 4; statement in the printf("%s",ptr);

if it like ths printf("%s",ptr +);then the ans is are you?

if i am wrong sorry and check ths..thank u..

Is This Answer Correct ?    3 Yes 10 No

Post New Answer

More Engineering AllOther Interview Questions

hi all I got two exam call letter one from maha ganeco & other from federal bank both at same time & same date which should i choose (note I am eng. grad.)

0 Answers   Federal Bank,


what is the basic need for tech..test?

0 Answers  


Sketch a velocity time graph for a skydiver jumping out of a plane.

0 Answers  


give me a example of an application of Low severity & high priority.

0 Answers   DataCore, DCPL,


why java take 2 byte for charecter???

1 Answers   MAHINDRA,






In how many ways can you put numbers 1 to 9 without repeating in a 3*3 matrix,So that the total of elements in any row and column and diagonal is 15?

0 Answers   Amazon,


what is the difference between core java and advance java

0 Answers  


if your monitor is not started with your cpu, but start when monitor attach to another cpu then where is the problem?

2 Answers  


what is the difference between verification and validation

0 Answers   Sonata,


where are the auto variables stored in c language?

1 Answers  


differance between impedance relay,mho relay, reactance relay in detail

8 Answers   Ecil, GATE,


A number when divided by D leaves a remainder of 8 and when divided by 3D leaves a remainder of 21 . What is the remainder left, when twice the number is divided by 3D?

2 Answers   TCS,


Categories
  • Civil Engineering Interview Questions Civil Engineering (5085)
  • Mechanical Engineering Interview Questions Mechanical Engineering (4452)
  • Electrical Engineering Interview Questions Electrical Engineering (16638)
  • Electronics Communications Interview Questions Electronics Communications (3918)
  • Chemical Engineering Interview Questions Chemical Engineering (1095)
  • Aeronautical Engineering Interview Questions Aeronautical Engineering (239)
  • Bio Engineering Interview Questions Bio Engineering (96)
  • Metallurgy Interview Questions Metallurgy (361)
  • Industrial Engineering Interview Questions Industrial Engineering (259)
  • Instrumentation Interview Questions Instrumentation (3014)
  • Automobile Engineering Interview Questions Automobile Engineering (332)
  • Mechatronics Engineering Interview Questions Mechatronics Engineering (97)
  • Marine Engineering Interview Questions Marine Engineering (124)
  • Power Plant Engineering Interview Questions Power Plant Engineering (172)
  • Textile Engineering Interview Questions Textile Engineering (575)
  • Production Engineering Interview Questions Production Engineering (25)
  • Satellite Systems Engineering Interview Questions Satellite Systems Engineering (106)
  • Engineering AllOther Interview Questions Engineering AllOther (1379)