can output 5 students using one dimensional array
Answer / hari haran
#include<iostream.h>
void main()
{
int a[5];
for(int i=0;i<n;i++)
{
cin>>a[i];
}
for(int i=0;i<n;i++)
{
cout<<"
"<<a[i];
}
}
Is This Answer Correct ? | 3 Yes | 0 No |
Where the memory to the static variables is allocated?
Write a program to interchange 2 variables without using the third one.
Can you explain the term "resource acquisition is initialization?"
What is the extension of c++?
Write a program to find the Factorial of a number
Please explain the reference variable in c++?
Write a program in C++ for Fibonacci series
0 Answers Axtria, ITC Indian Tobacco Company,
What is the use of setfill in c++?
What is new in c++?
Name some pure object oriented languages?
Describe the process of creation and destruction of a derived class object?
int *p = NULL; printf("%1d",p) ; what will be the output of this above code?