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
What is object-oriented programming? Webopedia definition
What is the significance of classes in oop?
Explain virtual inheritance?
Why is polymorphism important in oop?
What is encapsulation and abstraction? How are they implemented in C++?
What is balance factor?
write a program to find 2 power of a 5digit number with out using big int and exponent ?
What is encapsulation with real life example?
to find out the minimum of two integer number of two different classes using friend function
What are the two different types of polymorphism?
What is pure oop?
What is overriding in oops?
can inline function declare in private part of class?
What is oops and why we use oops?
How Do you Code Composition and Aggregation in C++ ?