main()
{
char *ptr = "Ramco Systems";
(*ptr)++;
printf("%s\n",ptr);
ptr++;
printf("%s\n",ptr);
}
Find the Outputs?
Answer Posted / madhu
segmentation fault.U can give that as *(ptr+1)
| Is This Answer Correct ? | 8 Yes | 6 No |
Post New Answer View All Answers
I have seen function declarations that look like this
What are compound statements?
Is c dynamically typed?
What is string function in c?
What is line in c preprocessor?
The statement, int(*x[]) () what does in indicate?
which of the following is allowed in a "C" arithematic instruction a) [] b) {} c) () d) none of the above
Is it cc or c in a letter?
What is binary tree in c?
Why functions are used in c?
Is calloc better than malloc?
What is modifier & how many types of modifiers available in c?
How to write a code for implementing my own printf() and
scanf().... Please hep me in this... I need a guidance...
Can you give an coding for c... Please also explain about
the header files used other than #include
Is there any possibility to create customized header file with c programming language?
if the area was hit by a virus and so the decrease in the population because of death was x/3 and the migration from other places increased a population by 2x then annually it had so many ppl. find our the population in the starting.