Question PRG-C-0020
HardWhat is the output of this program?
#include <stdio.h>
int main(void) {
unsigned int u = -1;
printf("%u", u);
return 0;
}
- A.
0
- B.
4294967295
- C.
Sign up free to see the answer and a step-by-step explanation.
Popular companies
Prepare company by company
Hiring pattern, syllabus, past questions and mocks for each company.
All companiesPractice by subject
C question
What is the output of this program?
#include <stdio.h>
int main(void) {
unsigned int u = -1;
printf("%u", u);
return 0;
}
0
4294967295
Sign up free to see the answer and a step-by-step explanation.
Error
-1