what is the difference between %d and %*d in c languaga?

Answer Posted / vishal pandey

int v=23,d=89;
printf("%d %*d",v,d);
then o/p v=23 and d=address value and address value change with processor but original value does not change.

Is This Answer Correct ?    3 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is wrong with this statement? Myname = 'robin';

821


How can I recover the file name given an open stream?

556


Draw a diagram showing how the operating system relates to users, application programs, and the computer hardware ?

2120


What is a good way to implement complex numbers in c?

596


The % symbol has a special use in a printf statement. How would you place this character as part of the output on the screen?

769






What is the use of in c?

578


WRITE A PROGRAM TO MERGE TWO SORTED ARRAY USING MERGE SORT TECHNIQUE..

1598


What is a class c rental property?

614


How can a program be made to print the line number where an error occurs?

652


What is structure of c program?

607


What is a constant and types of constants in c?

604


What is a program flowchart?

605


What is the heap in c?

645


What are the advantages and disadvantages of a heap?

712


What is a structure and why it is used?

621