Miscellaneous Company Exam Company Programming Program

If the following program (myprog) is run from the command line as myprog 1 2 3, What would be the output?
main(int argc, char *argv[))
{
nt i,j=O;
for(i=O;i0)
printf(”%s” , * + +a rgv);
a) myprog monday tuesday wednesday thursday b) monday tuesday wednesday thursday c) myprog tuesday thursday d) None of the above

Read Solution (Total 1)

Miscellaneous Company Exam Other Question

What is the type of the variable b in the following declaration? #define FLOATPTR float*
FLOATPTR a,b;
a) float b) float pointer c) mt d) mt pointer

In the following code;
#include
main()
{
FILE *fp;
fp= fopen(”trial”,”r”);
}
fp points to:
a) The first character in the file.
b) A structure which contains a “char” pointer which points to the first character in the file. c) The name of the file. d) None of the above.
If the program (myprog) is run from the command line as myprog 1 2 3 , What would be the output?
main(int argc, char sargv[))
int I,j=0;
for(i=O;i
How many 7 in between 1 to 100?