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 |
Write a program of advanced Fibonacci series.
How macro execution is faster than function ?
f() { int a=2; f1(a++); } f1(int c) { printf("%d", c); } c=?
What is the difference between static and global variables?
1.what are local and global variables? 2.what is the scope of static variables? 3.what is the difference between static and global variables? 4.what are volatile variables? 5.what is the use of 'auto' keyword? 6.how do we make a global variable accessible across files? Explain the extern keyword? 7.what is a function prototype? 8.what does keyword 'extern' mean in a function declaration?
how to make program without <> in library.
A c program to display count values from 0 to 100 and flash each digit for a secong.reset the counter after it reaches 100.use for loop,. pls guys hepl me.. :(
How can you access memory located at a certain address?
Tell about strtok & strstr functions
2 Answers HCL, iFlex, Motorola,
Write a program that takes a 5 digit number and calculates 2 power that number and prints it.
5 Answers TCS, Vimukti Technologies,
If I want to initialize the array like. int a[5] = {0}; then it gives me all element 0. but if i give int a[5] = {5}; then 5 0 0 0 0 is ans. what will I do for all element 5 5 5 5 5 in a single statement???
in malloc and calloc which one is fast and why?