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
Why is c called c not d or e?
What are loops in c?
disply the following menu 1.Disply 2.Copy 3.Append; as per the menu do the file operations 4.Exit
Define macros.
the constant value in the case label is followed by a a) semicolon b) colon c) braces d) none of the above
the question is that what you have been doing all these periods (one year gap)
Can a function be forced to be inline? Also, give a comparison between inline function and the C macro?
What is an auto variable in c?
Explain pointer. What are function pointers in C?
What are the output(s) for the following ? #include char *f() {char *s=malloc(8); strcpy(s,"goodbye")} main() { char *f(); printf("%c",*f()='A'); }
Write a programme using structure that create a record of students. The user allow to add a record and delete a record and also show the records in ascending order.
write a program to rearrange the array such way that all even elements should come first and next come odd
1) There is a singing competition for children going to be conducted at a local club. Parents have been asked to arrive at least an hour before and register their children’s names with the Program Manager. Whenever a participant registers, the Program Manager has to position the name of the person in a list in alphabet order. Write a program to help the Program Manager do this by placing the name in the right place each time the Program Manger enters a name. The Logic should be written in Data Structures?
What is c mainly used for?
How many levels of indirection in pointers can you have in a single declaration?