#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 ?    45 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 ?    12 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

A company wants to transmit data over the telephone, but it is concerned that its phones may be tapped. All of its data is transmitted as four-digit integers. It has asked you to write a program that will encrypt its data so that the data may be transmitted more securely. Your script should read a four digit integer entered by the user in a prompt dialog and encrypt it as follows: Replace each digit by (the sum of that digit plus 7) modulus 10. Then swap the first digit with the third, and swap the second digit with the fourth. Then output XHTML text that displays the encrypted integer.

2 Answers   EDS, MMM, SCS,


I need to know the process to add 100 tapes in ATL. Ho to inicialize them to the system? How is all the process i need to follow> Thanks

0 Answers   EDS,


Explain the role of a sequence counter in execution of a instruction.

2 Answers   247Customer, Google, WNS,


I have Cleared Bank of India Clerical Examination.I just want to know how to prepare for interview and what are the parriculars that I have to submit......Pls someone help me with it

0 Answers  


sir/medam i had completed my B-TECH(CSE)2011 with 61%.i have to go USA for futhure studies.i dnt know what is steps for do futhure studies in USA so could you please tell me

0 Answers  






what is the advantage of msil in c#

0 Answers  


If there's any possiblity for the Enginnerring graduates, Who had backlogs in there acedmic to get a Good MNC job?

0 Answers  


how to join the pc to the domain?

1 Answers   Aegis, jetking,


How does agile communication differ from tradition software engineering communication? How it is similar?

0 Answers  


I want to know the relation between GI pipe ID, water flow rate in lpm, static head and friction head losses, motor kw for that flow etc.

1 Answers  


as we know that java is a platform independent language, but we need jvm for the same operating system why?

0 Answers  


what is isolator

0 Answers  


Categories
  • Civil Engineering Interview Questions Civil Engineering (5085)
  • Mechanical Engineering Interview Questions Mechanical Engineering (4451)
  • Electrical Engineering Interview Questions Electrical Engineering (16632)
  • 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)