In the following declaration of main, "int main(int argc,
char *argv[])", to what does argv[0] usually correspond?
1) The first argument passed into the program
2) The program name
3) You can't define main like that
Answer Posted / mahi
my ans is 2.it prints the program name
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
i=20;k=0;
for(j=1;k-i;k+=j<10?4:3)
{
cout< What are functions in oop? How do you achieve polymorphism? This program numbers the lines found in a text file. Write a
program that reads text from a file and outputs each line
preceded by a line number. Print the line number
right-adjusted in a field of 3 spaces. Follow the line
number with a colon, then one space, then the text of the
line. You should get a character at a time and write code to
ignore leading blanks on each line. You may assume that the
lines are short enough to fit within a line on the screen.
Otherwise, allow default printer or screen output behavior
if the line is too long (i.e., wrap or truncate). A somewhat
harder version determines the number of spaces needed in the
field for the line numbers by counting lines before
processing the lines of the file. This version of the
program should insert a new line after the last complete
word that will fit within a 72-character line. What language is oop? What is a superclass in oop? What is polymorphism what are the different types of polymorphism? Can a varargs method be overloaded? Get me a number puzzle game-program What is the fundamental idea of oop? Plese get me a perfect C++ program for railway/airway
reservation with all details. What is pointer in oop? Is data hiding and abstraction same? What is an example of genetic polymorphism? • What are the desirable attributes for memory
managment?