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 |
what will be the output of the following program, justify? #define TEST int TEST getdata() { static i; i+=10; return i; } main() { int k; k = getdata(); }
What is Heap?
1.int a=10; 2.int b=20; 3. //write here 4.b=30; Write code at line 3 so that when the value of b is changed variable a should automatically change with same value as b. 5.
What is meant by type specifiers?
How can you invoke another program from within a C program?
Is it better to use a pointer to navigate an array of values, or is it better to use a subscripted array name?
Explain how can type-insensitive macros be created?
What is the difference between test design and test case design?
Sir,please help me out with the output of this programme:- #include<stdio.h> #include<conio.h> void main() { int a=18,b=12,i; for(i=a<b?a:b;a%i||b%i;i--); printf("%d %d",i); }
What is the total generic pointer type?
What is the difference between arrays and pointers?
HOW TO HANDLE EXCEPTIONS IN C