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 |
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.
what is the large sustained error signal that eventually cause the controller output to drive to its limit
#include"stdio.h" #include"conio.h" void main() { int a; printf("\n enter a number:"); scanf("%c\n"); getch(); }
What is the out put of this programme? int a,b,c,d; printf("Enter Number!\n"); scanf("%d",&a); while(a=!0) { printf("Enter numbers/n"); scanf("%d%d%d",&b,&c,&d); a=a*b*c*d; } printf("thanks!"); getche(); Entering numbers are a=1,b=2,c=3,d=4 b=3,c=4,d=-5 b=3,c=4,d=0
Answering Yes or No in C++...using only stdio.h and conio.h..........help me please...? here's must be the output of the program: Screen A Exam No. items Score 1 20 20 2 35 35 Another Entry? [Y] or [N] : Screen B: Record No. Student's Name: 1 Fernando Torres 2 Chuck Norris Note: if you press Y, the program must repeat the procedure in screen A, then if N, the program must proceed to the screen B....Please Help me out............
how tally is useful?
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.
How to create a program that lists the capital country when told what the original country is? (Terribly sorry, I'm a novice programmer and would appreciate any help ;). Cheers, Alexxis
What are the different types of errors in C and when they occur?
Find the error (2.5*2=5) (a) X=y=z=0.5,2.0-5.75 (b) s=15;
How to reverse a linked list without using array & -1? Thank you.
quoroum of computer languages?