void main()
{
int i=7;
printf("N= %*d",i,i);
}
Answers were Sorted based on User's Feedback
Its output would be 7,
"%*d"
here * symbol doesn't affect of operation of %d.
so 7 is set to value in variable i.
Is This Answer Correct ? | 19 Yes | 6 No |
Answer / munir
N= 7
Six space will be left and than 7 will be written..* is kind
of width...so if you put printf("N=$3d,i) than width will be
set as 3.
inshort * is kind used when setting up the width..
Is This Answer Correct ? | 8 Yes | 5 No |
Display this kind of output on screen. 1 0 1 1 0 1 3. Display this kind of output on screen. 1 1 0 1 0 1 4. Display this kind of output on screen. 1 1 0 1 0 1 5.Display this kind of output on screen. 1 2 3 4 5 6 7 8 9 10
Write a program to accept two strings of Odd lengths. Then take all odd characters from one string and even characters from the other and concatenate and produce a string.
what is macro in c? Difference between single linked list & double linked list what is fifo & lifo? what is stack & queue?
How to develop a program using C language to convert 8-bit binary values to decimals. TQ
void main() { for(int i=0;i<5;i++); printf("%d",i); } What is the output?..
32 Answers College School Exams Tests, CTS, HCL, iGate, SmartData,
void main() { int i=7; printf("N= %*d",i,i); }
I can not get my C++ program to work right. It is supposed to tell if a word is a palindrome or not, but it only tells thet the word is not a palindrome. And I can't fix it.
UINT i,j; i = j = 0; i = ( i++ > ++j ) ? i++ : i--; explain pls....
printy(a=3,a=2)
How to create a program that lists countries capitals when country is entered? (Terribly sorry, I'm a complete novist to coding with C, am looking for inspiration and general tips on how to code and create this program.)
full c programming error question based problem
what is meant for variable not found?