Search Results

Showing results 1 to 31 of 31
Search took 0.01 seconds.
Search: Posts Made By: Sukhbir
Forum: C++ Aug 20th, 2008
Replies: 14
Views: 1,304
Posted By Sukhbir
I need to know Why there is need to operload () this.
Forum: C++ Aug 20th, 2008
Replies: 14
Views: 1,304
Posted By Sukhbir
I just need to know why we need to overload () it?
If u have any document/link then tell me.
Forum: C++ Aug 20th, 2008
Replies: 14
Views: 1,304
Posted By Sukhbir
Hi,

Can any body explain me about overloading concept of () operator?
I need to know why do we need to overlload () operator and how do we achieve that?

Thanks in Advance
Forum: C++ Jun 18th, 2008
Replies: 4
Views: 1,990
Posted By Sukhbir
Hi All,

If i have choice to either use simple array(char a[]) or map.
Which one i shall use, whether array or map.
i need to know wich technique will give better...
Forum: C Aug 24th, 2007
Replies: 3
Views: 2,286
Posted By Sukhbir
Hi,

Is there any tutorial that tells how to do dynamic binding in C.

Thanks in Advance.
Forum: C++ Jul 31st, 2007
Replies: 11
Views: 3,989
Posted By Sukhbir
Hi,
Can i use realloc to deallocate the memory allocated using new operator. For example:

int * i = new int (10);
realloc (i, 0);

Thanks in advance.
Forum: C++ Jul 8th, 2007
Replies: 1
Views: 2,403
Posted By Sukhbir
Hi,
Can someone expain why ompiler provide default Copy Constructor for every class. As i know there is only one reason that if Compiler does not provide the copy constructor, f we pass the...
Forum: C Jul 7th, 2007
Replies: 4
Views: 802
Posted By Sukhbir
Hi All,

Please expain me, in below giving statements which one is efficient.
int i=0;
i = i + 1;
or
i++;

2. In We Allocate the memory using malloc. between somewhere after allocating memory...
Forum: C Apr 26th, 2005
Replies: 1
Views: 996
Posted By Sukhbir
what will happen if we free the same memory two times in C.
for exam........
char *k=(char *)malloc(4);
free(k);
free(k);
Forum: C++ Oct 19th, 2004
Replies: 4
Views: 4,305
Posted By Sukhbir
what happened if we do't typecast return value of malloc
like that

int *a=malloc(10);
Forum: C++ Sep 17th, 2004
Replies: 2
Views: 1,762
Posted By Sukhbir
char *ptr="abc";
char *ptr1;
while(*ptr1++=*ptr++); //IT IS WORKING
while((*ptr1)++=(*ptr)++); //ERROR

PLS EXPLAIN ME.
Forum: C Sep 10th, 2004
Replies: 1
Views: 2,590
Posted By Sukhbir
Can someone explain me
how these character or escape sequence are treated while finding string size(through sizeof() operator)

\0 \n \a \1 \2
for example char str[]="\1abc\0\0"...
Forum: C Sep 2nd, 2004
Replies: 4
Views: 4,658
Posted By Sukhbir
char str[] = {0123,'4','5','s','\n','\0'};
how it is treated like this first element like 0123.it is very much confusing pls clear my doubt.
Forum: C Aug 31st, 2004
Replies: 6
Views: 2,716
Posted By Sukhbir
consider the statement
++*p++
if it is valid then evaluate it.
Forum: C++ Aug 31st, 2004
Replies: 3
Views: 1,911
Posted By Sukhbir
Consider The Following Statements
*p++=*(p++)

These Two Are Equals.can Someone Explain Me How.
Is Parentehsis Not Alter The Behaviour? :?:
Forum: C Aug 29th, 2004
Replies: 4
Views: 4,658
Posted By Sukhbir
Consider the following programme
void main()
{
char str[]="\12345s\n";
printf("%d",sizeof(str));
}

Output is :6
can someone explain me...
Forum: C Aug 26th, 2004
Replies: 2
Views: 6,054
Posted By Sukhbir
consider the programme
void main()
{
unsigned i=1;
signed j=-1;
if(i<j)
printf("less");
}

output is:
Forum: C++ Aug 19th, 2004
Replies: 2
Views: 2,171
Posted By Sukhbir
#include<iostream.h>
void main()
{
cout<<"hello";
}
//IF WE COMPILE THIS PROGRAMME IT WILL NOT PRINT HELLO ON U'R SCREEN.TELL ME WHY & TELL ME PROCEDURE HOW IT PRINT USING COUT IN VC++
Forum: Networking Hardware Configuration Aug 13th, 2004
Replies: 1
ss7
Views: 2,279
Posted By Sukhbir
ss7
tell me sources or sites from where i can get detail inormation about ss7 protocol
Forum: C++ Aug 13th, 2004
Replies: 4
Views: 2,922
Posted By Sukhbir
1.
int *f()
{
int *m=(int *)malloc(2);
return m;
}
WHY THIS POINTER TO INT TREATED AS A GLOBAL VARIABLE.
2.can a...
Forum: C++ Aug 13th, 2004
Replies: 5
Views: 3,106
Posted By Sukhbir
//FROM MY SIDE
HELLO DEAR fflush() FUNCTION BUFFERED THE OUTPUT STREAM NOT INPUT STREAM.SO,U'R COMMENT IS NOT TECHNICALLY CORRECT.PLS REPLY ME SOON.
Forum: C++ Aug 12th, 2004
Replies: 5
Views: 3,106
Posted By Sukhbir
EXplain me about these function

cin.clear();
cin.ignore();

tell me what function i use for flushing a input bufer in c and c++;
Forum: C Aug 10th, 2004
Replies: 9
Views: 7,123
Posted By Sukhbir
void main()
{
int i=1;
printf("%d,%d,%d",i++,i++,i++);
}
output
3,2,1

CAN SOMEONRE EXPLAIN ME WHY?
Forum: C Aug 7th, 2004
Replies: 2
Views: 2,729
Posted By Sukhbir
consider the following statement & tell me why it i undetermined or
ambigious

int i=9;
i=i++;

PLS EXPLAIN ME FULLY
Forum: C++ Aug 6th, 2004
Replies: 3
Views: 2,234
Posted By Sukhbir
LOOK THE FOLLOWING STATEMENT

int *p[]();

PLS TELL ME THE MEANING OF THIS STATEMENT.& WHERE WE USE THIS STATEMENT.
Forum: C Aug 4th, 2004
Replies: 1
Views: 2,599
Posted By Sukhbir
CONSIDER THE FOLLOWING CODE:

int *p[];
// THIS IS ARRAY OF POINTERS
int (*p)[]
// THIS IS POINTER TO ARRAY.
CAN SOMEONE EXPLAIN ME SOME MORE ABOUT THESE TWO...
Forum: C Jul 30th, 2004
Replies: 7
Views: 5,161
Posted By Sukhbir
void main()
{
fork();
fork();
printf("main");
}

pls explain me what is the output.
how it comes.
Forum: C Jul 30th, 2004
Replies: 4
Views: 2,655
Posted By Sukhbir
LOOK THE FOLLOWING CODE:
void main()
{
char a[]={'a','b','c',d'};
int b[]={1,2,3,4,5};
printf("%d %d",&a[3]-a,&b[3]-b};
}
OUTPUT:
3 3
Forum: C++ Jul 26th, 2004
Replies: 1
Views: 1,766
Posted By Sukhbir
Look the following code:
struct emp
{
CASE :1
struct emp p; //ERROR
CASE :2
struct emp *k; //IT WILL WORK
};
WHY IT IS WORKING IN CASE :2 and not in CASE :2....
Forum: Networking Hardware Configuration Jul 26th, 2004
Replies: 5
Views: 11,718
Posted By Sukhbir
Look the Following Code....
struct emp
{
// CASE :1
struct emp a;// IT WILL GIVE THE ERROR
// CASE :2
struct emp *a;//IT IS COMPILED SUCCESFULLY
}
WHY
CASE :1 is error & CASE :2 is...
Forum: Networking Hardware Configuration Jul 23rd, 2004
Replies: 5
Views: 11,718
Posted By Sukhbir
I am trying to use my virtual terminal for accesing Internet named as TELNET
under Dos.But Every time when we want to connect or open a site giving it gives the message
Could open a...
Showing results 1 to 31 of 31

 


About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC