Program to check whether a word starts with a capital
letter or not.
Answer / zaideeabu
// Untested possible answer
// Which perhaps combined C & C++ style :P
#include <iostream.h>
#include <string.h>
int main(int argc, char * argv[])
{
char cA = 'A';
char cZ = 'Z';
char str[1024] = {0};
strncpy(str, argv[1], 1024);
if ( str[0] <= cA || str[0] >= cZ )
cout << "String: " << str << " does not start with
capital letter." << endl;
else
cout << "String: " << str << " starts with capital
letter."
return 0;
}
| Is This Answer Correct ? | 4 Yes | 3 No |
Explain virtual inheritance?
what is multithreading in c++ , what is difference between multithreading and singlethreading.
What is object in oops?
write knight tour problem which is present in datastructure
What is memory leak and memory corruption?
WRITE A SIMPLE C++ PROGRAM TO SWAP TWO NOS WITHOUT USING TEMP
What is abstract class in oops?
design a c++ class for the chess board,provide a c++ class definition for such class(only class definition is required)
Why many objects can working together? How objects working togetherM I want to see example code.
What is Dynamic Polymorphism?
Where You Can Use Interface in your Project
Write a C/C++ program that connects to a MySQL server and checks if the InnoDB plug-in is installed on it. If so, your program should print the maximum number of concurrent threads that the InnoDB plug-in can create.