#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 |
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.)
4) Write a program that takes a 5 digit number and calculates 2 power that number and prints it. I did the following program and is this correct
what is the cycle between AHU and Chiller
i have an interview in Qatar Petroleum. So please provide the all details abt safety management
What are the differences between 1 dimensional RAM and 2 dimensional RAM?
Please if anybody have Vizag Steel Entrance exam papers or atleast Pattern of exam.Then please forward to my email- id: :srikanth.avanthi@gmail.com
A,B and C can complete a piece of work in 10 days, then how many people are required to finish the whole work in 25 days? a) 10 days b) 15 days c) 20 days d) 22 days e) 25 days
what is inheritance
Why you shifting job every other year?
T is a tree and V is a vertex of T of maximum degree in T, say the degree of V in n. Prove that T has atleast n vertices of degree 1.
explain overloaded constrator © constractor
A short CI column of hollow circular section has projecting bracket carrying a load of 10 tonnes. The load line is off the column by 20cm. The external diameter of the column is 350mm and thickness of metal is 25 mm. Find the maximum stress intensity in the section.
Civil Engineering (5086)
Mechanical Engineering (4456)
Electrical Engineering (16639)
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)