why is iostream::eof inside a loop condition considered wrong?
No Answer is Posted For this Question
Be the First to Post Answer
How many namespaces are there in c++?
Implement strncpy
There is a array of 99 cells and we have to enter 1-100 elements in it , no two elements would repeat , so the is one no. missing because 99 cells and 1-100 nos. so we had to implement a function to find that missing no.
What is the function of the keyword ‘volatile’ in C++?
What is c++ programming language?
Explain calling an object's member function(declared virtual)from its constructor?
What is the array and initializing arrays in c++?
without if else statement can be written ah
What do you mean by Stack unwinding?
this is to swap to strings....but in output the whole strings are swapped leaving first as it is...why it is so #include<iostream.h> int main() { char a[]="ajeet"; char b[]="singh"; long x=*a; long y=*b; cout<<x<<":"<<y; x=x+y; y=x-y; x=x-y; *a=x; *b=y; cout<<x<<":"<<y; cout<<&a<<endl; cout<<&b<<endl; }
What are the advantages of using const reference arguments in a function?
How do c++ struct differs from the c++ class?