#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
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 |
Answer / satyarani
if int and return 0 is not there, then the output is are you?
Is This Answer Correct ? | 12 Yes | 1 No |
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 |
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
What is the basic difference between injection speed and injection pressure in an injection molding machine?
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
can u tell me what are the subjects involved in group I and II and how i prepare for the exam
when does the official confirmation or the offer letter for the 2012 selected candidates of HUAWEI will come??
MILITARY ENGINEER SERVICES
what do you expect from this company?
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)
explain overloaded constrator © constractor
what is b tree
what is the diffeence between SQL and ORACLE?
what is difference between class and object in c++