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 data binding?
What is and I oop mean?
What is the use of fflush(stdin) in c++?
What is the difference between pass by value,pass by pointer,pass by reference in the catch block in the exception handling in c++
What is meant by oops concept?
How to improve object oriented design skills?
What is coupling in oop?
Iam doing my project on instant messaging , if you any new ideas regarding this project ,please suggest it?
Program to open a file with First argument
what is ltti
What is virtual destructor? Why?
3 Answers Agile Software, College School Exams Tests, CSC,
What is abstract class in oop?