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


Please Help Members By Posting Answers For Below Questions

Why is c called c not d or e?

606


What are loops in c?

546


disply the following menu 1.Disply 2.Copy 3.Append; as per the menu do the file operations 4.Exit

1623


Define macros.

781


the constant value in the case label is followed by a a) semicolon b) colon c) braces d) none of the above

719






the question is that what you have been doing all these periods (one year gap)

1614


Can a function be forced to be inline? Also, give a comparison between inline function and the C macro?

656


What is an auto variable in c?

750


Explain pointer. What are function pointers in C?

624


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'); }

694


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.

1617


write a program to rearrange the array such way that all even elements should come first and next come odd

1758


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?

1910


What is c mainly used for?

593


How many levels of indirection in pointers can you have in a single declaration?

589