the format specified for hexa decimal is
a.%d
b.%o
c.%x
d.%u
Answers were Sorted based on User's Feedback
Answer / sri harsha
for hexa decimal %x,
for octal %o,
for decimal %d,
for unsigned int %d
| Is This Answer Correct ? | 4 Yes | 0 No |
Answer / manishsoni
i want to add something this :
hexadcimal mean 0-9 and a-f or A-F;
for the format spcifiere for 0-9 and a-f is %x
and the format spcifiere for 0-9 and A-F is %X
Manish soni MCA Ist sem rawatsar.
| Is This Answer Correct ? | 0 Yes | 0 No |
write a program for 7*8 = 56 ? without using * multiply operator ? output = 56
#include<stdio.h> int SumElement(int *,int); void main(void) { int x[10]; int i=10; for(;i;) { i--; *(x+i)=i; } printf("%d",SumElement(x,10)); } int SumElement(int array[],int size) { int i=0; float sum=0; for(;i<size;i++) sum+=array[i]; return sum; } output?
What is volatile keyword in c?
How can a program be made to print the name of a source file where an error occurs?
what is c
Is the C language is the portable language...If yes...Then Why...and if not then what is problem so it is not a Portable language..???
how to find the kth smallest element in the given list of array elemnts.
consider the following C code main() { int i=3,x; while(i>0) { x=func(i); i--; } int func(int n) { static sum=0; sum=sum+n; return(sum); } the final value of x is
How can I manipulate strings of multibyte characters?
When was c language developed?
Write a main() program that calls this function at least 10 times. Try implementing this function in two different ways. First, use an external variable to store the count. Second, use a local variable. Which is more appropriate?
Find greatest of two numbers using macro