#include<stdio.h>
#include<conio.h>
void main()
{
char ch='\356';
printf("%d",ch);
}
o/p=-18 why?plz.explain

Answers were Sorted based on User's Feedback



#include<stdio.h> #include<conio.h> void main() { char ch='\356'; pr..

Answer / dreambiren143

o/p=-18

Is This Answer Correct ?    4 Yes 2 No

#include<stdio.h> #include<conio.h> void main() { char ch='\356'; pr..

Answer / manish soni bca 3rd year jaipu

in place of 356 we i/p and see o/p;
i/p o/p
0-7 0-7

8-9 56-57

10-17 8-15

Is This Answer Correct ?    0 Yes 1 No

Post New Answer

More C Interview Questions

disadvantages of realloc ?

1 Answers   HCL,


What is the purpose of & in scanf?

0 Answers  


main() { int x=5,y=10,z=0; x=x++ + y++; y=y++ + ++x; z=x++ + ++y; printf("%d%d%d\n",x,y,z); }

1 Answers   CodeChef,


#define swap1(a,b) a=a+b;b=a-b;a=a-b; main() { int x=5,y=10; swap1(x,y); printf("%d %d\n",x,y); swap2(x,y); printf("%d %d\n",x,y); } int swap2(int a,int b) { int temp; temp=a; b=a; a=temp; return; } what are the outputs?

4 Answers   Ramco,


How we can write a value to an address using macro..?

0 Answers   Tata Elxsi,






Explain what are global variables and explain how do you declare them?

0 Answers  


If I have a char * variable pointing to the name of a function ..

0 Answers  


How can I change the size of the dynamically allocated array?

0 Answers  


How to calculate sum

2 Answers  


write a c program to add two integer numbers without using arithmetic operator +

13 Answers   Value Labs,


There are N egg baskets and the number of eggs in each basket is a known quantity. Two players take turns to remove these eggs from the baskets. On each turn, a player must remove at least one egg, and may remove any number of eggs provided they all belong to the same basket. The player picking the last egg(s) wins the game. If you are allowed to decide who is going to start first, what mathematical function would you use to decide so that you end up on the winning side?

8 Answers   Google,


what is the role you expect in software industry?

0 Answers   HCL,


Categories