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 |
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............
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 the value of x and y after execution of the statements: int x=19,y; y=x++ + ++x; x++; y++;
A sample program using data structure? what is file handling?
how tally is useful?
void main() { int i=5; printf("%d",i+++++i); }
Why are memory errors hard to debug?
What is probability to guarantee that the task a programmer is going to create will be created and be able to run on a particular system (RTOS/GPOS).
UINT i,j; i = j = 0; i = ( i++ > ++j ) ? i++ : i--; explain pls....
#include<stdio.h> void main() { int i=1; printf("%d%d%d",i++,++i,i); }
How to develop a program using C language to convert 8-bit binary values to decimals. TQ
I'm having trouble with coming up with the correct code. Thank You!! The assignment was to write a program using string functions that accepts a price of an item and displays its coded value. The base of the keys: X C O M P U T E R S 0 1 2 3 4 5 6 7 8 9 Sample I/O Dialogue: Enter Price: 489.50 Coded Value: PRS.UX