what would be the output of the following prog? Justify
your answer?
main()
{
unsigned char ch;
unsigned char i;
ch = -255;
printf("%d",ch);
i = -1;
printf("%d",i);
}
Answer / bittu
1255
this is because -255 (00000001) when considered unsigned
looks like 1(00000001) in binary and -1(11111111) when
considered unsigned looks like 255(11111111) in binary
(11111111).
refer to this
http://www.allaboutcircuits.com/vol_4/chpt_2/3.html
| Is This Answer Correct ? | 5 Yes | 0 No |
write a program to print the consecutive repeated character from the given string... input string is : hhhhjkutskkkkkggggj output should be like this: hhhhkkkkkgggg anyone help me...
Can a variable be both static and volatile in c?
Write a program to swap two numbers without using third variable in c?
Is python a c language?
What are 3 types of structures?
What are the types of pointers?
Is it possible to pass an entire structure to functions?
Write a Program to accept different goods with the number, price and date of purchase and display them
could u able to tell about suresoft technical session
What is table lookup in c?
Write programs for String Reversal & Palindrome check
How to write a program to receive an integer & find its octal equivalent by using for loop?