Sail E0 Webinar
Question

What is the output of:


#include<stdio.h>
main()
{
int a, b;
a = -3 - - 3 ;
b = -3 - - ( - 3 ) ;
printf("a = %d b = %d",a,b);
}
Options:
A .  -3 3
B .  -6 0
C .  0 -6
D .  None of the Above
Answer: Option C

-3 - -3= -3 + 3 = 0
-3 --(-3)= -3 - 3 = -6



Was this answer helpful ?
Next Question

Submit Solution

Your email address will not be published. Required fields are marked *

Latest Videos

Latest Test Papers