Comments in the codes are used to explain what is happening in the code. It is helpful as if one coder writes code he also writes comments so that other developers can understand easily about the coding logic.
Please login to submit your explanation
You can check your performance of this question after Login/Signup
Compiler is used to convert source code to target language.
You can read more about it here - https://prepinsta.com/c-programming/assembler-compiler-interpreter-linker-loader/
0 to 1000
0 to 1024
0 to 1023
0 to 1025
Signed means the leftmost bit of binary representation of that integer is used to show the sign of the integer. 1 means negative and 0 means positive. And rest of the bits represent the magnitude of the integer.
Unsigned means all the bits in the binary representation of the integer are used to show its magnitude and hence it can take only positive value.
As yours question we have a 10 bit unsigned integer, hence all the 10 bits will represent the magnitude of the integer. So the range will go from (0000000000) to (1111111111)which in decimal means 0 to 2^10−1 i.e 0to 1023.
As boolean can store only two values(i.e, 1 and 0), so tricha can store a list of binary data in boolean datatype.
Stack is an Application of Arrays. It is not a data type
For n bits, the range of 2’s complement signed integers that are allowed is -2^(n-1) to (2^(n-1))-1.
For the given question, we asked the range of 6 bit signed integers, so for 6 bits, the range of 2’s complement signed integers that are allowed is -2^(5) to (2^(5))-1. The answer is -32 to +31 both numbers included. Hence, 32 and 64 both cannot be represented by using 6 bits.
pointer c, d
a = 30
c = &a
d = c
a = a + 10
a is an integer variable and c, d are pointer variable.
Initially, a is assigned with 30
And, c is pointed to a, then d is assigned with c, so c and d both points a, a incremented with 10 so a will become 40,
So, *c will print the value of the variable c pointed 40.
The size of char datatype is 1. In this question we need to store the name of 7 letters in char array. So, to store 7 letters we need char array of 7 size.
Hence, 7 bytes are required.
a = 200 b = 10
a = 10 b = 200
a = 50 b = 100
a = 100 b = 50
0 to 255 integers are accepted
when a=10 b=200
c =410 > 255
when a=200 b=10
when a=50 b=100
when a=100 b=50
so, when a=10 and b=200 will gives wrong output
Please login to report
Buy TCS NQT Paid Materials
Join TCS NQT Online Classes
Personalized Analytics only Availble for Logged in users
Analytics below shows your performance in various Mocks on PrepInsta
Your average Analytics for this Quiz
September 10, 2021
Login/Signup to comment