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


Please Help Members By Posting Answers For Below Questions

What is object-oriented programming? Webopedia definition

712


What is the significance of classes in oop?

585


Explain virtual inheritance?

680


Why is polymorphism important in oop?

625


What is encapsulation and abstraction? How are they implemented in C++?

628






What is balance factor?

575


write a program to find 2 power of a 5digit number with out using big int and exponent ?

1887


What is encapsulation with real life example?

564


to find out the minimum of two integer number of two different classes using friend function

1635


What are the two different types of polymorphism?

666


What is pure oop?

587


What is overriding in oops?

592


can inline function declare in private part of class?

3651


What is oops and why we use oops?

569


How Do you Code Composition and Aggregation in C++ ?

24185