Single Choice Not Set

QWhat is the output of this C code?

#include<stdio.h>
void main()
{
	int c = - -2; 
	printf("c=%d", c); 
}

ID: #1158 Operators and Enums in C Language 863 views
Question Info
#1158Q ID
Not SetDifficulty
Operators and Enums in C LanguageTopic

Choose the Best Option

Click any option to instantly check if you're correct.

  • A c=2
  • B c=-1
  • C c=-2
  • D Error
Correct Answer

Explanation

Option A

Share This Question

Challenge a friend or share with your study group.