Q. What is output of below program?

Code:
int main()
{
  int a=10;
  int b,c;
  b = a++;
  c = a;
  cout<<a<<b<<c;
  return 0;
}
  • (A) 101010
  • (B) 101011
  • (C) 111111
  • (D) 111011
πŸ’¬ Discuss
βœ… Correct Answer: (D) 111011

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
205
Total Visits
πŸ“½οΈ
4 y ago
Published
πŸŽ–οΈ
Ram Sharma
Publisher
πŸ“ˆ
80%
Success Rate