Quiz on Programming Fundamentals 1 Doubt

(Regarding Problem 5)

  1. Is it not necessary to mention ‘int’ when you are using type modifiers?
  2. Please explain the output when a signed number is stored in unsigned bucket type. (code mein answer 2^32-2019 type ka tha)

what is problem 5 please send it

#include using namespace std; int main(){ long signed CodingBlocks = 2017; short unsigned BOSS1 = -2018; unsigned BOSS2 = -2019; int BOSS3 = -2020; long long unsigned BOSS4 = -2021; short unsigned Nagarro = 2018.9; long signed HackerBlocks = ‘A’; cout<<CodingBlocks<<endl; cout<<BOSS1<<endl<<BOSS2<<endl<<BOSS3<<endl<<BOSS4<<endl; cout<<Nagarro<<endl; cout<<HackerBlocks<<endl; return 0; }

… long signed HackerBlocks = ‘A’; cout<<CodingBlocks<<endl; cout<<BOSS1<<endl<<BOSS2<<endl<<BOSS3<<endl<<BOSS4<<endl; cout<<Nagarro<<endl; cout<<HackerBlocks<<endl; return 0; }

the rest of the code is not getting sent, but my doubt is in this portion only which I have sent