char* ptr = "Rahul";
*ptr++;
printf("%s",ptr);
What will be the output
Answer Posted / vadivelt
Since address pointed by ptr got incremented, ptr will point to
address of char 'a'.
So o/p will be - ahul
| Is This Answer Correct ? | 73 Yes | 5 No |
Post New Answer View All Answers
just right the logic of it 1--> If few people are electing then every time ur candidate should win 2--> arrange books in box, if box carry weight == books weight then take another box..... find the no of box required.
what type of questions
What is stream in oop?
Why is abstraction needed?
Why can't we have instance(stack) of a class as a member of the same class like eg.Class A{A obj;} as we can have self refential pointer
What are oops functions?
Why is abstraction used?
They started with the brief introduction followed by few basic C++ questions on polumorphism, inheritance and then virtual functions. What is polymorphims? How you will access polymorphic functions in C? How virtual function mechanism works?
What is static modifier?
What is difference between abstraction and encapsulation?
How Do you Code Composition and Aggregation in C++ ?
Can destructor be overloaded?
String = "C++ is an object oriented programming language.An imp feature of oops is classes and objects".Write a pgm to count the repeated words from this scenario?
What are the 5 oop principles?
Is react oop?