Huawei
Company
Programming
Program
Point out the compile time error in the program given below.
int main()
int *x;
1;
return 0;
A. Error: invalid assignment for x
B. Error: suspicious pointer conversion
C. No error
D. None of above
Read Solution (Total 7)
-
- C. No erroe
- 9 years agoHelpfull: Yes(8) No(2)
- D none of the above, there should be opening and closing parenthesis for the main function.
- 9 years agoHelpfull: Yes(3) No(1)
- D. None of the above
- 8 years agoHelpfull: Yes(1) No(1)
- C. none of the above
- 9 years agoHelpfull: Yes(0) No(3)
- C. no error
- 9 years agoHelpfull: Yes(0) No(5)
- D is correct ans
- 9 years agoHelpfull: Yes(0) No(1)
- D. None of above (paranethesis not available)
- 9 years agoHelpfull: Yes(0) No(1)
Huawei Other Question
What is the correct sequence
try,catch,finally
try1,catch1,catch2,try2,finally
try1,catch1,try2,catch2,finally
#include
#define mult(x,y) x*y
int main()
{
int a=5,b=5;
printf("%d",mult(a+b,a+b));
return 0;
}