15.what is the disadvantage of using macros?
16.what is the self-referential structure?
17.can a union be self-referenced?
18.What is a pointer?
19.What is the Lvalue and Rvalue?
20.what is the difference between these initializations?
21.Char a[]=”string”;
22.Char *p=”literal”;
23.Does *p++ increment p, or what it points to?



15.what is the disadvantage of using macros? 16.what is the self-referential structure? 17.can a u..

Answer / aravindakrishnan

for q 22 and 23;
*p++;
in post increment untill semicolon is encountered,
p points to 'l' only in the next line only
p points to 'i';

puts(*p++) gives the answer literal only

Is This Answer Correct ?    1 Yes 0 No

Post New Answer

More C Interview Questions

Explain what is the difference between #include and #include 'file' ?

0 Answers  


How are 16- and 32-bit numbers stored?

0 Answers  


Write a program which returns the first non repetitive character in the string?

0 Answers   Expedia,


What are the 4 types of functions?

0 Answers  


This is a variation of the call_me function in the previous question:call_me (myvar)int *myvar;{ *myvar += 5; }The correct way to call this function from main() will be a) call_me(myvar) b) call_me(*myvar) c) call_me(&myvar) d) expanded memory

0 Answers  






Why do we use & in c?

0 Answers  


Write a code to remove duplicates in a string.

0 Answers   Expedia,


Explain the properties of union. What is the size of a union variable

0 Answers  


How is a structure member accessed?

0 Answers  


FORMATTED INPUT/OUTPUT functions are a) scanf() and printf() b) gets() and puts() c) getchar() and putchar() d) all the above

0 Answers  


any function have arguments one or more OR not . it is compulsary a) any function compulsary have one or more arguments b) any function did not have arguments. It is not compulsary c) it is optional it is not compulsary d) none of the above

0 Answers  


Please write the area of a RIGHT ANGLED TRIANGLE.

1 Answers  


Categories