Answer Posted / prk
void main()
{
int i,n,k;
cout<<"Enter the number:";
cin>>n;
k=n%2;
if(k==0)
n=n-1;
for(i=n;i<=n;i=1-2)
cout<<1;
}
| Is This Answer Correct ? | 9 Yes | 15 No |
Post New Answer View All Answers
What is setf in c++?
Explain operator overloading.
What is static class data?
Evaulate: 22%5 a) 2 b) 4 c) 0
Explain one method to process an entire string as one unit?
How do I run c++?
Describe private, protected and public – the differences and give examples.
What is friend class in c++ with example?
Does improper inheritance have a potential to wreck a project?
Is map thread safe c++?
State the difference between delete and delete[].
There are 100 students in a class. The management keep information in two tables. Those two tables are given like Roll no Name Age 001 ABC 15 002 XYZ 14 and Roll No Subject Marks 001 Math 75 001 Physics 55 002 Math 68 001 Hindi 69 They want the information like this Roll No Name Hindi Physics Math Total 001 ABC 69 55 75 199 002 XYZ 68 74 84 226 And Roll No Suject Highest 001 Math 98 007 Physics 84 021 Hindi 74 All 275 All information is kept in structure in main memory. You have to find last two tables.
What is object in c++ example?
Is ca high or low level language?
What is pointer to member?