What is the output of printf("%d")?
Answer Posted / vinod
It prints the value in the stack.That means the if there is
previous initialisation of values.If there are no
definitions of integer varaibles,it would display the
garbage value.
| Is This Answer Correct ? | 1 Yes | 1 No |
Post New Answer View All Answers
What is flush () in c++?
What is the type of this pointer in c++?
Why is c++ still best?
How did c++ start?
What is constructor in C++?
What are the uses of typedef in a program?
What is linked list in c++?
What is a memory leak c++?
What is the difference between while and do while loop?
Why c++ is better than c language?
What is the difference between a "copy constructor" and an "assignment operator" in C++?
What is function overloading c++?
What is the use of endl in c++?
A company pays its salespeople on a commission basis. The salespeople receive $200 per week plus 9 percent of their gross sales for that week. For example, a saleperson who sells $5000 worth of merchandise in a week receives $200 plus 9 percent of $5000, or a total of $650. You have been supplied with a list of items sold by each salesperson. The values of these items are as follows: Item Value A 239.99 B 129.75 C 99.95 D 350.89 Write a program that inputs one salesperson's items sold in a week (how many of item A? of item B? etc.) and calculates and displays that salesperson's earnings for that week.
Can you Mention some Application of C/C++?