Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


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

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

1 Answers  


what is macro in c? Difference between single linked list & double linked list what is fifo & lifo? what is stack & queue?

2 Answers   TCS,


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

1 Answers   Amazon,


void main() { for(int i=0;i<5;i++); printf("%d",i); } What is the output?..

32 Answers   College School Exams Tests, CTS, HCL, iGate, SmartData,


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

6 Answers   HCL,


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  


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

5 Answers  


printy(a=3,a=2)

3 Answers  


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

0 Answers  


full c programming error question based problem

3 Answers   HCL, TCS,


what is meant for variable not found?

3 Answers  


Categories