This is not a school assignment but questions from recruitment papers
Type: Posts; User: vaibhav
This is not a school assignment but questions from recruitment papers
thanx
Which is the only operator in C++ which can be overloaded but NOT inherited
This is an excerpt from an e-book
char *someFun()
{
char *temp = “string constant";
return temp;
}
int main()
{
I have searched the forum and found that volatile keyword is used so that other programs are allowed to modify it.
Then why is it provided in dos programming which does not support...
But why this is illegal
int gr8;
cout<<gr##8;
I have found from an ebook that we can maintain links between hetrogenous elements by void pointer.But then how we will be able to derefrence it since, derefrencing void pointer is illegal and also...
Thanks grumpy
I read this output question from a site
#include<iostream>
#include<conio.h>
#define f(g,g2) g##g2
using namespace std;
int main()
{
int var12=100;
Can We write something to beginning of a file?
How to reverse a text file character by character that is last character of file must be first character of output file.
Though I did it by taking the text of whole file in character array and...
Wow! There is no reply.Ok I have found it myself
cmd = New OleDbCommand("select * from titles where title_id=('@a') ", con);
The real culprit is single quotes in '@a'.Instead of...
I just want user to select something from combobox and then whole row corresponding to that value should get displayed in datagrid. I am getting table but not getting any data in it.
cmd =...
If you want to do this by char pointer then allocate the required memory through new operator.
char *a=new char[20];
cin>>a;
cout<<a;
But be sure you don't enter more than 19 word...
You can't do it on Dev C++.Turbo C++ provides a very nice graphics.h header for this
Posted by Mario.F
Which means they are both 4 bytes long
or 32 Bits (1 byte equals 8 bits), also known as word
No,one word is equal to 2 bytes
Why Dos is called 16 bit
Perhaps because it has 16 bit(2 bytes) pointers.
Then Win XP should have 64 bit (8 bytes) pointers
Oh! Now I have realised that
vector<int> a[10];
is actually a array of pointer pointing to 10 vectors of size 0.
Here is proof
vector<int> arr[3], is an array of 3 vectors (vectors of integers)
Array of 3 vector?
Can you elaborate on this
if
vector<int> a[10];
is an array then why I am not able to use it like
a[2]=10;
Wow now,that's work
But what's the difference between
vector<int> a[10]; //Even other functions like size and push_back does not seem to work
//and
vector<int> a(10);
Why
vector<int> a[10];
cout<<a[2];//Valid
cin>>a[2];//Invalide
I have recently learnt vectors. Where one should use array and where vector. Is it possible to have 2D,3D...,ND vectors. What is vector equivalent of apart from using iterators.
int a[10];...
Ok,It was just my luck that I got garbage value as 0. I have tried several times but you will not always get it as zero.
Do you know any compiler which does not do so???