main()
{
int a = 65;
printf(“%d %o %x”,a,a,a);
}
Output
65 101 41
Please explain me.How it is coming like that?
Answer Posted / ruchika thakur
in octal,divide 65 by 8 and collect the remainder.it will
return 101....and in hexadecimal,divide 65 by 16 and again
collect the remainder...you will get 41......
THANKS
| Is This Answer Correct ? | 5 Yes | 2 No |
Post New Answer View All Answers
write a program that will open the file, count the number of occurences of each word in the the complete works of shakespeare. You will then tabulate this information in another file.
hw can we delete an internal node of binary search tree the internal node has child node..plz write progarm
What is the newline escape sequence?
What is static memory allocation? Explain
How can I send mail from within a c program?
What is typedf?
Explain what does the format %10.2 mean when included in a printf statement?
Can two or more operators such as and be combined in a single line of program code?
if (i = 0)printf ("True"); elseprintf("False"); Under what conditions will the above print out the string "True" a) Never b) Always c) When the value of i is 0 d) all of the above
Why is sizeof () an operator and not a function?
can we have joblib in a proc ?
void main(int n) { if(n==0) return; main(--n); printf("%d ",n); getch(); } how it work and what will be its output...............it any one know ans plz reply
Write the control statements in C language
What is gets() function?
Input is "rama loves rajesh and rajesh Loves rama also and rajesh wear gloves and bloves" To print output is count the numbers of times repeted the word love without case sensitive.