Identify the operators that is not used with pointer
a. &&
b. #
c. *
d. >>
Answers were Sorted based on User's Feedback
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 |
How would you print out the data in a binary tree, level by level, starting at the top?
yogesh patil in 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.
Why is c called c?
How can you convert integers to binary or hexadecimal?
C program to find frequency of each character in a text file?
What is const keyword in c?
What are qualifiers?
How is a macro different from a function?
What is %lu in c?
What is the scope of static variables in c language?