ExamCompetition Forum Question Papers Ask A Question Mock Test Learn & Earn Sign Up Login Menu



0 vote

What will be the output of the following C++ program ? #include using namespace std; int main(){ char array[10]; for(int i = 0; i < 5; i++) *(array + i) = 65 + i; *(array + i) = '\0'; cout

Asked on by | Votes 0 | Views: 41 | Tags: dsssb     | dsssb year     | dsssb pgt computer science male     | computer basics     | dsssb previous year     | Add Bounty

What will be the output of the following C++ program ?
#include
using namespace std;
int main(){
char array[10];
for(int i = 0; i < 5; i++)
*(array + i) = 65 + i;
*(array + i) = '\0';
cout << array;
return(0);
}
1). CDEFG
2). ABCDE
3). BCDEF
4). ABCDEVO


Share on Facebook      Share on Whatsapp       Share on Twitter

DSSSB Facebook Group | Join DSSSB Telegram Group




1 answers

2 vote
Answered by on | Votes 2 |
NA

Join Telegram Group




Answer This Question

Name:
Email:
Answer :
Sum of (3+5)
Submit: