Answer Posted / meruva
%d means it prints only given value,
and %*d means it prints garbage value.
for eg: //it prints i value is=10
int i=10;
printf("i value is=%d",i);
//it prints garbage value
int i=10;
printf("i value is=%*d",i);
| Is This Answer Correct ? | 5 Yes | 3 No |
Post New Answer View All Answers
What is meant by gets in c?
Write a program to check armstrong number in c?
What is a loop?
What are reserved words?
What is calloc()?
Write a C++ program to generate 10 integer numbers between - 1000 and 1000, then store the summation of the odd positive numbers in variable call it sum_pos, then find the maximum digit in this variable regardless of its digits length.
What are the benefits of c language?
Draw a diagram showing how the operating system relates to users, application programs, and the computer hardware ?
What is a void * in c?
What is const volatile variable in c?
Which of the following operators is incorrect and why? ( >=, <=, <>, ==)
In a switch statement, explain what will happen if a break statement is omitted?
What are the differences between Structures and Arrays?
What are the different types of pointers used in c language?
Is it valid to address one element beyond the end of an array?