Identify the operators that is not used with pointer
a. &&
b. #
c. *
d. >>
Answer Posted / senthil
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 |
Post New Answer View All Answers
GIven a sequence of characters. How will you convert the lower case characters to upper case characters. ( Try using bit vector - sol given in the C lib -> typec.h)
In c language can we compile a program without main() function?
How can I remove the leading spaces from a string?
Linked lists -- can you tell me how to check whether a linked list is circular?
What is a pragma?
What is int main () in c?
What is meant by errors and debugging?
What is declaration and definition in c?
Are bit fields portable?
How can a program be made to print the line number where an error occurs?
What is New modifiers?
What is a node in c?
Write a program to print ASCII code for a given digit.
How do I use void main?
What are the data types present in c?