Question:

Wat is the output of the expression c=++a+++a+++a; when a=1;;;?

by  |  earlier

0 LIKES UnLike

wat will be the output when the expression will be c=a+++a+++a++; when the value of a=1;;;

 Tags:

   Report

4 ANSWERS


  1. d=--b+++b; when b=2;;;.


  2. when a=1;;  i assume you mean for(a=1;;){ }

    Ok that would be infinite loop

    and you will get output of

    6

    18

    6

    18

    ...so on..

    Hope this will help

    Cheers:)

  3. you have two questions

    1.c=++a+++a+++a

    c=9

    pre increment is done

    2.c=a+++a+++a++;

    c=3

    post increment is done

  4. a=16

Question Stats

Latest activity: earlier.
This question has 4 answers.

BECOME A GUIDE

Share your knowledge and help people by answering questions.
Unanswered Questions