Identify the operators that is not used with pointer

a. &&

b. #

c. *

d. >>

Answers were Sorted based on User's Feedback



Identify the operators that is not used with pointer a. && b. # c. * d. >>..

Answer / bhargavi

'>>' operator

Is This Answer Correct ?    12 Yes 4 No

Identify the operators that is not used with pointer a. && b. # c. * d. >>..

Answer / 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

More C Interview Questions

How would you print out the data in a binary tree, level by level, starting at the top?

6 Answers   Amazon, Microsoft,


yogesh patil in dell

3 Answers   DELL,


a.One Cannot Take the address of a Bit Field b.bit fields cannot be arrayed c.Bit-Fields are machine Dependant d.Bit-fields cannot be declared as static Which of the Following Statements are true w.r.t Bit-Fields A)a,b&c B)Only a & b C)Only c D)All

3 Answers   Accenture, Digg.com,


Write a C program to get the desired output. 1 1 2 1 1 3 3 1 1 4 6 4 1 1 5 10 10 5 1 . . . 1 n..............n 1 Note: n is a positive integer entered by the user.

4 Answers  


Why is c called c?

0 Answers  


How can you convert integers to binary or hexadecimal?

0 Answers  


C program to find frequency of each character in a text file?

6 Answers  


What is const keyword in c?

0 Answers  


What are qualifiers?

0 Answers  


How is a macro different from a function?

0 Answers   Tech Mahindra,


What is %lu in c?

0 Answers  


What is the scope of static variables in c language?

0 Answers  


Categories