#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 |
A company wants to transmit data over the telephone, but it is concerned that its phones may be tapped. All of its data is transmitted as four-digit integers. It has asked you to write a program that will encrypt its data so that the data may be transmitted more securely. Your script should read a four digit integer entered by the user in a prompt dialog and encrypt it as follows: Replace each digit by (the sum of that digit plus 7) modulus 10. Then swap the first digit with the third, and swap the second digit with the fourth. Then output XHTML text that displays the encrypted integer.
I need to know the process to add 100 tapes in ATL. Ho to inicialize them to the system? How is all the process i need to follow> Thanks
Explain the role of a sequence counter in execution of a instruction.
2 Answers 247Customer, Google, WNS,
I have Cleared Bank of India Clerical Examination.I just want to know how to prepare for interview and what are the parriculars that I have to submit......Pls someone help me with it
sir/medam i had completed my B-TECH(CSE)2011 with 61%.i have to go USA for futhure studies.i dnt know what is steps for do futhure studies in USA so could you please tell me
what is the advantage of msil in c#
If there's any possiblity for the Enginnerring graduates, Who had backlogs in there acedmic to get a Good MNC job?
how to join the pc to the domain?
How does agile communication differ from tradition software engineering communication? How it is similar?
I want to know the relation between GI pipe ID, water flow rate in lpm, static head and friction head losses, motor kw for that flow etc.
as we know that java is a platform independent language, but we need jvm for the same operating system why?
what is isolator