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

Why can't we initialise member variable of a strucutre

1 Answers  


difference between loading and linking

1 Answers  


what is real time system?what is the differance between hard and soft real time systems

2 Answers  


How does placing some code lines between the comment symbol help in debugging the code?

0 Answers  


difference of two no's with out using - operator

7 Answers  






What is null pointer constant?

0 Answers  


Is it possible to execute code even after the program exits the main() function?

0 Answers  


What is double pointer in c?

0 Answers  


Q.1 write aprogram to stack using linklist o insert 40 items? Q.2 write a program to implement circular queue with help of linklist?

0 Answers   TCS,


I have an array of 100 elements. Each element contains some text. i want to: append a star character to the end of every fifth element remove every second character from every tenth element, and… add a line feed (ascii 10) after the 30th character of every array element whose length is greater than 30 characters.

1 Answers  


what is diff b/w huge & far & near pointer??

1 Answers   HCL,


What is difference between constant pointer and constant variable?

0 Answers   Hexaware,


Categories