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 a function in oop?
class type to basic type conversion
Why do we use class?
What's the full form of STL?
What is the difference between procedural programming and oops?
What is the difference between C++ and java?
What is the correct syntax for inheritance? 1) class aclass : public superclass 2) class aclass inherit superclass 3) class aclass <-superclass
define a string class. overload the operator == to compare two strings
2 Answers Birla, Ericsson, HCL, Infosys, Infotech, MCAS, Satyam,
design class for linked list and include constructor,destructor,insert option. struct node { int node; struct node &ptr; }
what is the use of classes in c++;
Differences between inline functions and non-inline functions?
Get me an image implementation program.