Question:What is the difference between %d and %*d in c language?
Answer %d give the original value of the variable and %*d give the address of the variable. eg:-int a=10,b=20; printf("%d%d",a,b); printf("%*d%*d",a,b); Result is 10 20 1775 1775 .Here 1775 is the starting address of the memory allocation for the integer.a and b having same address because of contagious memory allocation.
+ Report
What is the difference between %d and %*d in c language?