Like Tree1Likes
  • 1 Post By manasij7479

code help

This is a discussion on code help within the C++ Programming forums, part of the General Programming Boards category; What will the output of the following code be if A is true, B is false and C is false ...

  1. #1
    Registered User
    Join Date
    Nov 2011
    Posts
    1

    code help

    What will the output of the following code be if A is true, B is false and C is false at the time these lines are executed

    if(A&&C)cout<<"Do this\n";
    else if (B||A)cout<<"Do that\n"

  2. #2
    Registered User manasij7479's Avatar
    Join Date
    Feb 2011
    Location
    Kolkata@India
    Posts
    2,498
    Quote Originally Posted by Jarr10 View Post
    What will the output of the following code.........
    Why don't you find out for yourself..?
    Salem likes this.
    Manasij Mukherjee | gcc-4.8.2 @Arch Linux
    Slow and Steady wins the race... if and only if :
    1.None of the other participants are fast and steady.
    2.The fast and unsteady suddenly falls asleep while running !



Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 1
    Last Post: 03-10-2010, 10:28 AM
  2. Replies: 14
    Last Post: 04-01-2008, 02:23 AM
  3. producing c/c++ code from flowcharts,pseudo code , algorithims
    By rohit83.ken in forum C++ Programming
    Replies: 3
    Last Post: 02-20-2008, 06:09 AM
  4. Having trouble translating psudeo-code to real-code.
    By Lithorien in forum C++ Programming
    Replies: 13
    Last Post: 10-05-2004, 07:51 PM
  5. Replies: 0
    Last Post: 02-21-2002, 05:05 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21