[Updated] Goldman Sachs Aptitude Test Questions and Answers
Practice List of TCS Digital Coding Questions !!!
Take 50+ FREE!! Online Data Interpretation Mock test to crack any Exams.

C Programming :: Variables & Data Types - Discussion

Home > C Programming > Variables & Data Types > MCQs Questions Discussion

19 / 51

What is the output of the following C Program?

=>For input as 1 2

#include<stdio.h>
int main(){
register int a,b;
int c;
scanf("%d%d",&a,&b); 
c=~a + ~b + ++a + b++;
printf(" %d",c);
return 0;
}

A-1

B0

C1

D2

ECompilation error

Answer: Option (Login/Signup)

Show Explanation

Asked In ::

Post Your Answer Here:     

No Discussion on this question yet!