#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 ? | 47 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 |
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.)
what is the basic need for tech..test?
Sketch a velocity time graph for a skydiver jumping out of a plane.
give me a example of an application of Low severity & high priority.
why java take 2 byte for charecter???
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?
what is the difference between core java and advance java
if your monitor is not started with your cpu, but start when monitor attach to another cpu then where is the problem?
what is the difference between verification and validation
where are the auto variables stored in c language?
differance between impedance relay,mho relay, reactance relay in detail
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?