Identify the operators that is not used with pointer
a. &&
b. #
c. *
d. >>
Answers were Sorted based on User's Feedback
ANS. b. #
# is an operator used to convert a parameter to string
# should always be followed by a formal parameter (in below example parameter x)
Ex:
#define SAM(x) #x
printf(SAM(Hello)); // prints Hello
In other cases
char a = 0x10, b;
char *p = &b;
a. a&&*p is valid
b. *p is valid
c. a>>*p is valid
| Is This Answer Correct ? | 2 Yes | 1 No |
What should malloc(0) do?
code for copying two strings with out strcpy() function.
What is scope rule of function in c?
What is a macro in c preprocessor?
How can I determine whether a machines byte order is big-endian or little-endian?
What is the difference between array and structure in c?
I heard that you have to include stdio.h before calling printf. Why?
What is declaration and definition in c?
What is the modulus operator?
where can function pointers be used?
can we execute the program with the object file
Can we initialize extern variable in c?