What are the output(s) for the following ? #include char *f() {char *s=malloc(8); strcpy(s,"goodbye")} main() { char *f(); printf("%c",*f()='A'); }
What does. int *x[](); means ?
a=10;b= 5;c=3;d=3; if(a printf(%d %d %d %d a,b,c,d) else printf("%d %d %d %d a,b,c,d);
main() { int i = 10; printf(" %d %d %d ", ++i, i++, ++i); }
main() { inta=10,b=20; a>=5?b=100:b=200; printf("%d ",b); }
main() { printf("hello"); fork(); }
main() { struct s1 { char *str; struct s1 *ptr; }; static struct s1 arr[] = { {"Hyderabad",arr+1}, {"Bangalore",arr+2}, {"Delhi",arr} }; struct s1 *p[3]; int i; < BR> for(i=0;i<=2;i++) p[i] = arr[i].ptr; printf("%s ",(*p)->str); printf("%s ",(++*p)->str); printf("%s ",((*p)++)->str); }
typedef struct{ char *; nodeptr next; } * nodeptr ; What does nodeptr stand for?
Describe these concepts: Polymorphism, Inheritance and Abstraction.
Explain the advantages of inheritance.
Explain virtual inheritance?
How can you overcome the diamond problem in inheritance?
How to hide the base class functionality in Inheritance?
What is the important feature of inheritance?
State what is encapsulation and friend function?