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

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.

2 Answers   HCL,


what is the large sustained error signal that eventually cause the controller output to drive to its limit

1 Answers   TCS,


#include"stdio.h" #include"conio.h" void main() { int a; printf("\n enter a number:"); scanf("%c\n"); getch(); }

12 Answers   HCL,


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

5 Answers   TCS,


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  






how tally is useful?

2 Answers  


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.

1 Answers  


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

0 Answers  


What are the different types of errors in C and when they occur?

4 Answers  


Find the error (2.5*2=5) (a) X=y=z=0.5,2.0-5.75 (b) s=15;

3 Answers  


How to reverse a linked list without using array & -1? Thank you.

2 Answers   Access, Satyam,


quoroum of computer languages?

0 Answers   Infosys,


Categories