Computer Science, asked by sanskritigupta607, 2 months ago

Predict the output int a=7; p=++a + --a;​

Answers

Answered by Mathsgenuis
0

Here I have given the input to be typed:

publiclassstud1

{

int a='7';

int p='++a+--a';

}

Public void input

{

system.out.println''a='7';

system.out.println''value of p"

}

}

The output generated will be:

The value of p is 14.

If you programming in JavaScript and if you are a beginner you can use bluej(best environment for programming which is free of cost) it needs a JDK (Java development kit)

Hope it helps. pls mark it 5 stars and also feel free to ask me questions regarding any subject. Thankyou

Similar questions