Miscellaneous Company Exam Company Numerical Ability Area and Volume

One skirt requires 3.75 yards of cloth. How many skirts you can make from 45 yards

Read Solution (Total 2)

Miscellaneous Company Exam Other Question

In which line of the following, an error would be reported?
1. #deflne CIRCUM(R) (3.14*R*R);
2. main()
3. {
4. float r=1.O,c;
5. c= CIRCUM(r);
6. printf(”n%f”,c);
7. if(CIRCUM(r))==6.28)
8. printf(”nGobbledygook”);
9. }
a) line 1 b) line 5 c) line 6 d) line 7
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