When not to use object oriented programming?
No Answer is Posted For this Question
Be the First to Post Answer
difference between class and object
10 Answers Chandan, IBM, Magic Soft,
What is a class in oop?
Can we create object of class with private constructor?
how many types of notations are in java
1 Answers National University of Modern Languages (NUML),
What is object in oops?
Does c++ support multilevel and multiple inheritance?
Conversion from a basic type to a class type may be achieved using______________
#include <string.h> #include <stdio.h> #include <stdlib.h> #include <conio.h> void select(char *items, int count); int main(void) { char s[255]; printf("Enter a string:"); gets(s); select(s, strlen(s)); printf("The sorted string is: %s.\n", s); getch(); return 0; } void select(char *items, int count) { register int a, b, c; int exchange; char t; for(a = 0; a < count-1; ++a) { exchange = 0; c = a; t = items[ a ]; for(b = a + 1; b < count; ++b) { if(items[ b ] < t) { c = b; t = items[ b ]; exchange = 1; } } if(exchange) { items[ c ] = items[ a ]; items[ a ] = t; } } } design an algorithm for Selection Sort
char* ptr = "Rahul"; *ptr++; printf("%s",ptr); What will be the output
What will happen when the following code is run: int x; while(x<100) { cout<<x; x++; } 1) The computer will output "0123...99" 2) The computer will output "0123...100" 3) The output is undefined
#include <iostream> using namespace std; struct wow { int x; }; int main() { wow a; a.x = 22; int c = a.x; int *b = new int; cout << c; return 0; } option: No output 0 22 -(11) Will not compile
what is the drawback of classical methods in oops?