what is the use of template classes in c++
Answer / ags
Templates are used to avoid the repetition of similar
functions in any class.
| Is This Answer Correct ? | 6 Yes | 0 No |
can you explain how to use JavaBean in Project
what is difference between thread and programme.
What is ambiguity in c++
what is the advantage in software? what is the difference between the software developer and Engineer
What does oop mean in snapchat?
Write a program to sort the number with different sorts in one program ??
What is operator overloading? Give Example
11 Answers CTS, IBM, TCS,
What is the diamond problem in inheritance?
what is code for call by value and call by reference?
features of OOPS
22 Answers Ness Technologies, Satyam,
What is a class and object?
#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