OUTPUT of program :
Enter a string length: 5
Enter a string : hello
String in upper case letters is: HELLO
Enter a string length: 5
WRITE a Program that prompts the length of a string and the string in uppercase letters using dynamic arrays ?
#include <iostream>
#include <cstring>
#include <cctype>
using namespace std;
int main(){
char *str = new char[80];
int *num= new int[80];
char *str1=new char[80];
int len,i;
cout << "Enter a string: "
cin.get(str, 80);
cout << "Enter string length: "
cin.get(num, 80);
cout << "String in upper case letters is:"<< endl;
len = strlen(str);
for (i = 0; i <len; i++)
{
*(str1+i)=toupper(*(str+i));
}
for(i=0;i<len;i++)
{
cout<<*(str1+i);
}
return 0;
}
C++ :
Performance, effectiveness, and flexibility of usage were the design pillars of C++, which was created with systems programming, embedded, resource-constrained software, and big systems in mind. The software infrastructure and resource-constrained applications, such as desktop programmes, video games, servers, and performance-critical programmes, are two areas where C++ has been proven to be very useful.
Generic programming is made possible via C++ templates. Function, class, alias, and variable templates are supported in C++. Types, compile-time constants, and other templates can all be used to parameterize templates. At compile time, templates are implemented by instantiation. Compilers use particular inputs in place of a template's parameters to create a concrete instance of a class or function. Some substitutes are not possible, and an overload resolution policy with the motto "Substitution failure is not an error" eliminates these cases (SFINAE).
C++ gives C features for object-oriented programming (OOP). It provides classes that offer the four features frequently found in OOP languages: polymorphism, inheritance, encapsulation, and abstraction. Support for deterministic destructors, which in turn provides support for the Resource Acquisition is Initialization (RAII) idea, sets C++ classes apart from classes in other programming languages.
To learn more about C++ refer :
brainly.com/question/13168905
#SPJ1