#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

wat is the process of civil services examination...I want to become DSP....Is civil services and APPSC are sam???first of all for wat we have to prepare...for prelimnary or for mains or for nterview...i dont know any thing...please help me...arun.kanduri@gmail.com

1 Answers  


What is the basic difference between injection speed and injection pressure in an injection molding machine?

0 Answers  


Hai friends this is Dara s. solanki, i done in B.Sc.(IT) i have an 2.3 years of exp in Manufacturing company in MIS giving support in SAP , 1 year back i did Sap course In MM Module. am trying from the day one to enter into the sap field but i was not.i kindly requesting all, please suggest me how to enter in to the SAP field. Looking for a job . i please help me and having any thing please let me know . i am in bangalore. my mail id is Dara.solanki@gmail.com. 8431455753

0 Answers   SAP Labs,


can u tell me what are the subjects involved in group I and II and how i prepare for the exam

0 Answers  


when does the official confirmation or the offer letter for the 2012 selected candidates of HUAWEI will come??

0 Answers  






MILITARY ENGINEER SERVICES

1 Answers   MES,


what do you expect from this company?

0 Answers   L&T,


A character set has 1 and 2 byte characters. One byte characters have 0 as the first bit. You just keep accumulating the characters in a buffer. Suppose at some point the user types a backspace, how can you remove the character efficiently. (Note: You cant store the last character typed because the user can type in arbitrarily many backspaces)

2 Answers   Microsoft,


explain overloaded constrator &copy constractor

0 Answers  


what is b tree

0 Answers   HCL,


what is the diffeence between SQL and ORACLE?

0 Answers  


what is difference between class and object in c++

0 Answers   TCS,


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)