Write on signed and unsigned integers and give three (3)
examples each
Answer / durga.g
signed integers : which contains both the +ve and -ve numbers
. The format specifier for signed integers is %d or we can
use %i also.
the range is same as the int.
Unsigned integers:
the range of unsigned integer is 0to65535.
the format specifier for this is %u.
generally this is used to print the address of a variable.
unsigned integer doesnt contain negative value.
eg:
main()
{
int i;
printf("enter i value");
scanf("%d",&i);
printf("the value stored in the i variable is%d",i);
printf("address is %u",&i);
getch();
}
| Is This Answer Correct ? | 0 Yes | 0 No |
What is encapsulation and abstraction? How are they implemented in C++?
0 Answers Agilent, ZS Associates,
what is the new version of oops
What are the benefits of oop?
Please tell me the oops concept with detailed answer
How can i write a code in c# to take a number from the user and then find all the prime numbers till the number entered by the user.
What is the difference between declaration and definition?
What do you mean by multiple inheritance and multilevel inheritance? Differentiate between them.
write a code for this. serial_number contained in the header of the file will be read , if this serial number is less than a previous serial number within a successfully processed file, or is the same as another serial number within a successfully processed file, or if the field contains anything other than 7 digits, then the file must error with the reason ‘Invalid SERIAL_NUMBER’.
which are the 4 members functions in c++ objects that can either be declared explicitly by programmer or implementation if nt available.
What do we mean by a hidden argument in C++?
Why interface is used?
Should you protect the global data in threads? Why or why not?