#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 |
What is the allowable load carrying capacity of a circular column section of 400 mm diameter reinforced with 6x25 mm diameter bars adequately tied with spirals? Consider concrete of grade M25 and steel of grade Fe 415.
Is Diesel staorage tank ( 800 litres) cleaning procedure is available with any body
how to delete four out of five duplicate records in a table using sql
Please explain why you are suitable for the position that you have applied for?
The factorial of a nonnegative integer n is written n! (pronounced “n factorial”) and is defined as follows: n! = n · (n - 1) · (n - 2) · … · 1 (for values of n greater than to 1) and n! = 1 (for n = 0 or n = 1). For example, 5! = 5 · 4 · 3 · 2 · 1, which is 120. Use while structures in each of the following: a) Write a program that reads a nonnegative integer and computes and prints its factorial. Use the following function prototype to calculate factorial: int myFactorial(int n); b) Write a program that estimates the value of the mathematical constant e by using the formula: Use the following function prototype to calculate e: double myE( ); Hint: Use an accuracy of 10 terms. c) Write a program that computes the value of ex by using the formula Use the following function prototype to calculate e: double myEx(int x);
write the output for yhe given program int a=5; void main() { int a=9; printf("%d",a); } printf("%d",&a);
i opt cse branch in engineering.which subject i have choose in civil service preliminary examination
When a new build comes what is the first step taken by a tester in testing
Client server applications
pls send me rrb se(s&t)questions
WHAT IS THE NAMESPACE FOR CUSTOMCONTROL AND USER CONTROL IN ASP.NET?
Briefly describe your ideal job?