adplus-dvertising
frame-decoration

Question

If following program (myprog)is run from the command line as myprog friday tuesday sunday then what would be the output?
main (int argc,char*argv)
{
printf("%c",**++argv);
}

a.

m

b.

f

c.

myprog

d.

None of these

Answer: (b).f

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. If following program (myprog)is run from the command line as myprog friday tuesday sunday then what would be the output?

Similar Questions

Discover Related MCQs

Q. Let f : {a, b}* (a, b}* be given by f (n) = ax for
every value of n  ε {a, b} then f is

Q. Which of the following types of programs would require the program data to be sorted in order for the programs to work correctly ?

Q. A text is made up of the characters a, b, c, d, e each occurring with the probability 0.12, 0.4, 0.15,0.08 and .25 respectively. The optimal coding tech-nique will have the average length of

Q. C was primarily developed as a

Q. C is a

Q. Which of the following comments are true ?

Q. Which of the following comments about EOF are true?

Q. In standard C, trigraphs in the source program are translated

Q. Which of the following are not the keywords in C?

Q. Choose the correct statement

Q. Which of the following features of C is meant to provide reliable access to special memory locations?

Q. Choose the best answer. Storage class defines

Q. puts(argv[0]);

Q. Bit field

Q. Choose the correct comments
In a bit-field

Q. The declaration int x : 4;
means

Q. Bit-fields will he accommodated in a word

Q. Choose the correct statement.

Q. The use of macro in the place of functions

Q. The process of transforming one bit pattern into another by bit-wise operations is called