Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
50% Quality Score
Upvotes Received
1
Posts with Upvotes
1
Upvoting Members
1
Downvotes Received
1
Posts with Downvotes
1
Downvoting Members
1
0 Endorsements
~10.0K People Reached
Favorite Forums
Favorite Tags
c++ x 15
c x 13
Member Avatar for 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.

Member Avatar for abhityagi85
0
2K
Member Avatar for Sukhbir

void main() { int i=1; printf("%d,%d,%d",i++,i++,i++); } output 3,2,1 CAN SOMEONRE EXPLAIN ME WHY?

Member Avatar for sanagopi
-1
232
Member Avatar for 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 connection to [url]www.goggle.com[/url] Why it gives the error every time when i want to connect …

Member Avatar for daniwebmicasa
0
569
Member Avatar for 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

Member Avatar for Narue
0
121
Member Avatar for 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 performance. As per my requirement i will insert the element in array/map, find the element based on index. …

Member Avatar for Alex Edwards
0
4K
Member Avatar for Sukhbir

[code=c] void main() { fork(); fork(); printf("main"); } [/code] pls explain me what is the output. how it comes.

Member Avatar for replytoshshir
0
193
Member Avatar for Sukhbir

Hi, Is there any tutorial that tells how to do dynamic binding in C. Thanks in Advance.

Member Avatar for SpS
0
129
Member Avatar for 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 object by value or we create a new object from existing object or we return object …

Member Avatar for Narue
0
91
Member Avatar for 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 if our programming crashed.Then Allocated memory will be immedately freed by OS or OS will …

Member Avatar for Narue
0
128
Member Avatar for 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);

Member Avatar for Narue
0
91
Member Avatar for Sukhbir

what happened if we do't typecast return value of malloc like that int *a=malloc(10);

Member Avatar for Narue
0
135
Member Avatar for Sukhbir

char *ptr="abc"; char *ptr1; while(*ptr1++=*ptr++); //IT IS WORKING while((*ptr1)++=(*ptr)++); //ERROR PLS EXPLAIN ME.

Member Avatar for Chainsaw
0
139
Member Avatar for 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" pls explain me in detailed

Member Avatar for Dave Sinkula
0
142
Member Avatar for Sukhbir

1. int *f() { int *m=(int *)malloc(2); return m; } WHY THIS POINTER TO INT TREATED AS A GLOBAL VARIABLE. 2.can a pointer points to another pointer like that int *p,i=2; int *q; p=&i; q=p; IS IT RIGHT.

Member Avatar for let us c
1
147
Member Avatar for Sukhbir
Member Avatar for XianBin
0
134
Member Avatar for Sukhbir

Consider the following programme void main() { char str[]="\12345s\n"; printf("%d",sizeof(str)); } Output is :6 can someone explain me why.And is sizeof contain null value while gigving the size of any string.

Member Avatar for Dave Sinkula
0
127
Member Avatar for Sukhbir

Consider The Following Statements *p++=*(p++) These Two Are Equals.can Someone Explain Me How. Is Parentehsis Not Alter The Behaviour? :?:

Member Avatar for Chainsaw
0
135
Member Avatar for Sukhbir

consider the programme void main() { unsigned i=1; signed j=-1; if(i<j) printf("less"); } output is: less why can someone explain me

Member Avatar for Dave Sinkula
0
128
Member Avatar for 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++

Member Avatar for stg110
0
273
Member Avatar for 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++;

Member Avatar for stg110
0
102
Member Avatar for Sukhbir

tell me sources or sites from where i can get detail inormation about ss7 protocol

Member Avatar for bentkey
0
71
Member Avatar for Sukhbir

consider the following statement & tell me why it i undetermined or ambigious int i=9; i=i++; PLS EXPLAIN ME FULLY

Member Avatar for alc6379
0
110
Member Avatar for Sukhbir

LOOK THE FOLLOWING STATEMENT int *p[](); PLS TELL ME THE MEANING OF THIS STATEMENT.& WHERE WE USE THIS STATEMENT.

Member Avatar for FireNet
0
81
Member Avatar for 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 STATEMENTS

Member Avatar for Dave Sinkula
0
62
Member Avatar for 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 CAN SOMEBODY EXPLAIN ME WHY THE OUTPUT IS SAME. ACCORDING TO ME OUTPUT IS (3 6).

Member Avatar for Naveen
0
162
Member Avatar for 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. TELL me with explanation

Member Avatar for Chainsaw
0
177