#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 ? | 48 Yes | 1 No |
Answer / satyarani
if int and return 0 is not there, then the output is are you?
| Is This Answer Correct ? | 13 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 |
what is different between static block and public static void main??
when will the group1&group2 exams will be held
Write a Java program that takes an integer from the user and extracts and displays each digit of the integer in English. So, if the user types in 932, the program will display nine three two. [Use SimpleInput class]
Whats the difference between following two array declaration in JAVA int a[]={1,2,3,4,5} int []a={1,2,3,4,5}
what are the difference between grounding,earthing and neutral???????....
sir, i am khalidh iam preparing for the examinations of Hpcl information systems officers for that iam having a guidence for the written exam.So provide me a test apptitude papers and subject related questions.
how to increase the chiller effiency?
what is routing protocals & routed protocals.
What is meant by OOP?
what is the significance of partial derivatives.
tcs aptitude questions
The old welding machine use electro- -magnetic winding to step up the current for welding rods,what is new principle inside the welding
Civil Engineering (5086)
Mechanical Engineering (4453)
Electrical Engineering (16638)
Electronics Communications (3918)
Chemical Engineering (1095)
Aeronautical Engineering (239)
Bio Engineering (96)
Metallurgy (361)
Industrial Engineering (259)
Instrumentation (3014)
Automobile Engineering (332)
Mechatronics Engineering (97)
Marine Engineering (124)
Power Plant Engineering (172)
Textile Engineering (575)
Production Engineering (25)
Satellite Systems Engineering (106)
Engineering AllOther (1379)