What is the difference between pure virtual function and virtual function?
Answer / Ashish Ghildiyal
"In C++, both pure virtual functions and virtual functions are part of polymorphism. However, there's a key difference:n- A virtual function is a member function in a base class that can be overridden by derived classes.n- A pure virtual function is a virtual function that has no implementation in the base class and must be overridden by derived classes to be used. A class containing at least one pure virtual function is an abstract class, meaning it cannot be instantiated.".
| Is This Answer Correct ? | 0 Yes | 0 No |
Write a program to display the no of bit difference between any 2 given numbers eg: Num1 will 12->1100 Num2 will 7->0111 the difference in bits are 2.
#include<stdio.h> main() { char s1[]="Ramco"; char s2[]="Systems"; s1=s2; printf("%s",s1); } Find the output
which of the following statements is incorrect a.typedef struct new{ int n1; char n2; } DATA; b.typedef struct { int n3; char *n4; }ICE; c.typedef union { int n5; float n6; } UDT; d.#typedef union { int n7; float n8; } TUDAT;
Can the sizeof operator be used to tell the size of an array passed to a function?
What is the difference between char array and char pointer?
C,c++, Java is all are structural oriented or procedure oriented language..?
is it possible to create your own header files?
What is the purpose of main( ) in c language?
Is null a keyword in c?
sir i got 146 correct question & i have also the advantage of height so will they consider my marks as 146+3=149.can any body tell me how they consider my height marks.
What standard functions are available to manipulate strings?
Write a c program using for loop in switch case?