TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Interviews
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
.NET
ADO.NET
Android
ASP.NET
C#
Databases & DBA
Design Patterns & Practices
Java
Learn iOS Programming
OOP/OOD
SharePoint
Software Testing
Web Development
WPF
View All
Wy output of cout<<++c<
By
rajeev kumar
in
OOP/OOD
on
Mar 15
2007
0
6.9k
1
Post Your Answer
Submit
Jun, 2010
15
If you question is What will be the output then the answer is:
This is the case of pre-increment and post-increment.
Pre-Increment: In this first the value of attribute is incremented by 1 and then further operation will carried out.
Post-Increment: In this first operation is carried out and then value is incremented by 1.
Your Example is the case of Pre-incrementation. So first the value of "c" will increment by 1 and then will perform cout operation i.e. if the value of "c" is 25 then in output we will see the value of c is 26 if you write something after second << otherwise the program will not get compiled because of the syntax problem or "; (Semicolon) " missing at the end of line.
0
Most Popular Job Functions
Developer (2375)
Programmer (1288)
Sr. Developer (826)
Sr. Programmer (449)
Fresher (398)
Tech Lead (376)
DBA (244)
Team Lead (187)
Project Lead (83)
Architect (27)
View All
MOST LIKED QUESTIONS
Why do you want to leave your current company?
What are the advantages of using REST in Web API?
What is ASP.NET Core?
How to iterate through ArrayList in jQuery?
What is the difference between TempData keep() and peek() function?
A class provides a default constructor for me. I write a constructor that takes a string as...
Can multiple catch blocks be executed in a C# program?
what is Sealed class
What were your responsibilities in your previous job ?
What Operating Systems Node.js Supports