Let x be an array. Which of the following operations are illegal? a) ++x b) x+1 c) x++ d) x*2
Correct Answer: a, c and d
Explanation:
Note: This Question is unanswered, help us to find answer for this one
C Programming Skill Assessment
Your Skill Level: Poor
Retake Quizzes to improve it
More C Programming MCQ Questions
Output of following program? #include int main() { const int x=5; const int *ptrx; ptrx=&x; *ptrx=10; printf('%d\n',x); return 0; }
Can you combine the following two statements into one? char *p; p = (char*) malloc(100);
What is the following program doing? #include main() { FILE *stream=fopen('a.txt','r'); }
If there is any error while opening a file, fopen will return?
Which cannot be a variable name in C?
What is the scope of a function?
In which stage the following code : #include gets replaced by the contents of the file stdio.h?
Which functions can be used to set the file position indicator to the beginning of the file?
Point out the error in the program? typedef struct data mystruct; struct data { int x; mystruct *b; };
'The expressions *ptr++ and ++*ptr are same'