void main()
{
int i=7;
printf("N= %*d",i,i);
}

Answers were Sorted based on User's Feedback



void main() { int i=7; printf("N= %*d",i,i); }..

Answer / pawanjha12

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

void main() { int i=7; printf("N= %*d",i,i); }..

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

void main() { int i=7; printf("N= %*d",i,i); }..

Answer / vishal bhardwaj

it will display N= 7

Is This Answer Correct ?    1 Yes 1 No

void main() { int i=7; printf("N= %*d",i,i); }..

Answer / sansiri

N= 7




it doesnot consider the * symbol and the other i.

Is This Answer Correct ?    0 Yes 0 No

void main() { int i=7; printf("N= %*d",i,i); }..

Answer / rohit kiran

The Output is:
N=7

Is This Answer Correct ?    2 Yes 3 No

void main() { int i=7; printf("N= %*d",i,i); }..

Answer / sapna

garbage value

Is This Answer Correct ?    2 Yes 5 No

Post New Answer

More C C++ Errors Interview Questions

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............

1 Answers  


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

1 Answers  


write the value of x and y after execution of the statements: int x=19,y; y=x++ + ++x; x++; y++;

0 Answers  


A sample program using data structure? what is file handling?

0 Answers   TCS,


how tally is useful?

2 Answers  






void main() { int i=5; printf("%d",i+++++i); }

14 Answers   HCL,


Why are memory errors hard to debug?

1 Answers  


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).

0 Answers  


UINT i,j; i = j = 0; i = ( i++ > ++j ) ? i++ : i--; explain pls....

5 Answers  


#include<stdio.h> void main() { int i=1; printf("%d%d%d",i++,++i,i); }

19 Answers  


How to develop a program using C language to convert 8-bit binary values to decimals. TQ

1 Answers   Amazon,


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

0 Answers  


Categories