Question from Quiz on Programming Fundamentals

"/* The output of the following program is ? */ 1) #include
2) using namespace std;
3) int main(){
4) signed CodingBlocks = 9;
5) signed Nagarro = A;
6) signed char HackerBlocks = ‘A’;
7) cout<<CodingBlocks<<endl;
8) cout<<HackerBlocks<<endl;
9) return 0;
} "

A 9

Error in line 4

Error in line 5

9 A


Doubt 1: Are we ignoring the missing in line 1 (I think it’s a typo) ?
Doubt 2: Is signed a data type on its own? I mean don’t we use it as an optional prefix to primitive data types?

Hi… can u save the code on ide and send or send a snippet of ques u are referring to
and well signed is a data type only…

shall I consider that ur doubt is cleared now??

Can you share a link of some blog where all C++ data types are explained properly? Would be great. Thank You!

hi u can google it out… geeksforgeeks is one of the best websites available

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.