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 |
quoroum of computer languages?
Write a c-programe that input one number of four digits and find digits sum?
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 the large sustained error signal that eventually cause the controller output to drive to its limit
what is run time error?
Assume that the int variables i and j have been declared, and that n has been declared and initialized. Write code that causes a "triangle" of asterisks of size n to be output to the screen. Specifically, n lines should be printed out, the first consisting of a single asterisk, the second consisting of two asterisks, the third consistings of three, etc. The last line should consist of n asterisks. Thus, for example, if n has value 3, the output of your code should be * ** *** You should not output any space characters. Hint: Use a for loop nested inside another for loop.
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.)
#include<stdio.h> void main() { int i=1; printf("%d%d%d",i++,++i,i); }
Find the error (2.5*2=5) (a) X=y=z=0.5,2.0-5.75 (b) s=15;
void main() { int i=1; printf("%d%d%d",i,++i,i++); } Cau u say the output....?
wap for bubble sort
Why are memory errors hard to debug?