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
What type of function is main ()?
Does c have enums?
What is #include stdlib h?
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.
a linearly ordered set of data elements that have the same structure and whose order is preserved in storage by using sequential allocation a) circular b) ordinary c) array d) linear list
How can my program discover the complete pathname to the executable from which it was invoked?
Explain why C language is procedural?
Is null valid for pointers to functions?
Write a function stroverlap that takes (at least) two strings, and concatenates them, but does not duplicate any overlap. You only need to worry about overlaps between the end of the first string and the beginning of the second string. Examples: batman, manonthemoon = batmanonthemoon batmmamaman, mamamanonthemoon = batmmamamanonthemoon bat, man = batman batman, batman = batman batman, menonthemoon = batmanmenonthemoon
What are valid signatures for the Main function?
How can I implement sets or arrays of bits?
What is use of null pointer in c?
What is indirection in c?
What are the rules for the identifier?
What are two dimensional arrays alternatively called as?