#include <iostream>
using namespace std;
struct wow {
int x;
};
int main() {
wow a;
wow *b;
a.x = 22;
b = &a;
a.x = 23;
cout << b->x;
return 0;
}
When is a memory allocated to a class?
explain sub-type and sub class? atleast u have differ it into 4 points?
what is object oriented programming and procedure oriented programming?
Generally, in all C++ programs, texts are in white colour. Can we change the colour of the text(either input or output or both)? If so, help me out.
Give an example where we have to specifically use C programming language and C++ programming language cannot be used?
WAP to generate 2n+1 lines of the following pattern on the computer screen:
Why is polymorphism needed?
#include <string.h> #include <stdio.h> #include <stdlib.h> #include<conio.h> void insert(char *items, int count); int main(void) { char s[255]; printf("Enter a string:"); gets(s); insert(s, strlen(s)); printf("The sorted string is: %s.\n", s); getch(); return 0; } void insert(char *items, int count) { register int a, b; char t; for(a=1; a < count; ++a) { t = items[a]; for(b=a-1; (b >= 0) && (t < items[b]); b--) items[b+1] = items[b]; items[b+1] = t; } } design an algorithm for Insertion Sort
What is multilevel inheritance in oop?
i got a backdoor offer in process global,Bangalore..Can i work with it?
What is a class?
32 Answers Infosys, TCS, Thylak,
write a program that takes input in digits and display the result in words from 1 to 1000