cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
General C++ Programming
output of the following program mcq
output of the following program mcq
Oct 16, 2016 at 2:51pm UTC
hannan103
(3)
#include<iostream.h>
void main()
{
char a[15]={"Examination"}, b[10]={"my"};
int i ,j;
for( j= 2 ,i = 5 ; a[i]!= '\0'; i++, j++)
{
b[j] = a[i] -32;
}
b[j] = '\0';
cout<<"\n"<<b;
}
a) MYnation
b) mynation
c) MYNATION
d) myNATION
Topic archived. No new replies allowed.