#define MAX 3
main()
{
printf("MAX = %d \n",MAX );
#undef MAX
#ifdef MAX
printf("Vector Institute”);
#endif
Answer Posted / poorna
Initially the max is defined so the first statement printf prints max=3,
#undef used to remove all the defined terms.so the max is not defined after this step.
So the if statement became false hence answer is Max=3
| Is This Answer Correct ? | 27 Yes | 3 No |
Post New Answer View All Answers
An expression to whose value an operater is applied a) operand b) variable c) constant d) all of the above
Tell me about low level programming languages.
What is far pointer in c?
When should you not use a type cast?
What is #define?
How will you delete a node in DLL?
What does & mean in scanf?
Explain what does the function toupper() do?
What is the package for freshers(Non IIT) in amazon(hyderabad). And what is the same for those who are a contract employee.
What are different types of pointers?
What are the types of macro formats?
What is the difference between malloc calloc and realloc in c?
a parameter passed between a calling program and a called program a) variable b) constant c) argument d) all of the above
#include
stripos — Find position of first occurrence of a case- insensitive string int stripos ( char* haystack, char* needle, int offset ) Returns the numeric position of the first occurrence of needle in the haystack string. Note that the needle may be a string of one or more characters. If needle is not found, stripos() will return -1. The function should not make use of any C library function calls.