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?
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 |
Explain what is the difference between #include and #include 'file' ?
How are 16- and 32-bit numbers stored?
Write a program which returns the first non repetitive character in the string?
What are the 4 types of functions?
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
Why do we use & in c?
Write a code to remove duplicates in a string.
Explain the properties of union. What is the size of a union variable
How is a structure member accessed?
FORMATTED INPUT/OUTPUT functions are a) scanf() and printf() b) gets() and puts() c) getchar() and putchar() d) all the above
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
Please write the area of a RIGHT ANGLED TRIANGLE.