#include<stdio.h>
int main()
{
char *ptr;
char string[] = "How are you?";
ptr = string;
ptr += 4;
printf("%s",ptr);
return 0;
}

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

WHAT IS THE PROPER LOCATION OF SAMPLE POINT OF LPG SPHERE TANK?

1951


what is disadvantages of waterfall model ?? industry used which model ??

1463


WHY IBM MAINFRAME TECHNOLOY IS USED.THOUGH, SINCE ITS INTRODUCTION IT HAS NO MAJOR UPDATATION OR MODIFICATION;BUT STILL IT IS IN DEMAND........WWWWWWWWWWWWWWHHHHHYYYYYYYY????????????

1550


Why do windmills never appear stationary?

941


what is the difference b/w "print" and "sprint" in sql?

1367






What is the weight of a foot square block of bronze.

1255


What is the difference between a .PST file and a .OST file?

3423


what are the various height of GSM mount and its base width ashim.port@gmail.com

1400


Which is better field cad/cam in mechanical or film editing/animation is better salary wise?

1432


what is the difference between embedded system and PLC. Whether the micro controller accept future expansion of program?

3758


Write a program to maintain a singly linked list having the following functions: a) Creation of the list b) Displaying the list. c) Swap all nodes at consecutive even odd positions. E.g.: The nodes at position 1 should be swapped with node 2, node 3 with node 4 and so on.

7092


WAP in Java to print the format A B A B C D E D E

1588


what is a query for divide a table into two subtable?

1606


could i know the selection pattern at hpcl, am an undergradute in chemical technology, but my sujects or course do not figure out antwhere on the lists.

1495


gsm features

1378