sir i attempted the quiz section… there is a question which is saved on this https://ide.codingblocks.com/s/122470
i have a doubt that what is this nagarro is?
also in line 5 and line 6 it does not mention the type of variable such as int ,float why??
DATA TYPES int, float, char
@Iitianrahman
I believe the correct statement should be
signed Nagarro = ‘A’;
otherwise it gives an error.
I will explain with regards to this correction only.
If the data type of a variable is not specified with a modifier , the compiler assumes it to be int by default.
For example :
long x;
long int x;
are equiavalant statements.
Since we didn’t specify the data type in statement ,
signed Nagarro = A;
the compiler assumed it to be int and assigned the ASCII value of character ‘A’ , which happens to be 65, to the variable Nagarro,
You can try printing the value of this variable to verify this in your code.
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.