Explain the extern storage classes in c++.
Answer / Vishal Prayani
{"extern": "The extern keyword is used for external linkage declaration of variables in C++. When you declare a variable with extern, it tells the compiler that the variable has been declared elsewhere. This allows multiple source files to share the same global variable without redefinition errors.",
"externGlobalVariable": "An extern global variable is a variable declared outside any function and is given the keyword 'extern'. It must be initialized at least once in the program, usually in one of the source files."}
| Is This Answer Correct ? | 0 Yes | 0 No |
How do you print for example the integers 3,2,1,5,4 in a binary tree within the console in format where it looks like an actual binary tree?
Comment on assignment operator in c++.
reading material is provided 3 books for c++ if u need more do let me know thnx i hve lots of material do let me know if u want it
You want to link a c++ program to c functions. How would you do it?
How do you differentiate between overloading the prefix and postfix increments?
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.
What are the rules about using an underscore in a c++ identifier?
Search for: what is pair in c++?
How important is c++?
Incase of a function declaration, what is extern means?
What is the disadvantage of using a macro?
Is c++ used anymore?