26 Posted Topics
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.
void main() { int i=1; printf("%d,%d,%d",i++,i++,i++); } output 3,2,1 CAN SOMEONRE EXPLAIN ME WHY?
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 …
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
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. …
[code=c] void main() { fork(); fork(); printf("main"); } [/code] pls explain me what is the output. how it comes.
Hi, Is there any tutorial that tells how to do dynamic binding in C. Thanks in Advance.
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 …
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 …
what will happen if we free the same memory two times in C. for exam........ char *k=(char *)malloc(4); free(k); free(k);
what happened if we do't typecast return value of malloc like that int *a=malloc(10);
char *ptr="abc"; char *ptr1; while(*ptr1++=*ptr++); //IT IS WORKING while((*ptr1)++=(*ptr)++); //ERROR PLS EXPLAIN ME.
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
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.
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.
Consider The Following Statements *p++=*(p++) These Two Are Equals.can Someone Explain Me How. Is Parentehsis Not Alter The Behaviour? :?:
consider the programme void main() { unsigned i=1; signed j=-1; if(i<j) printf("less"); } output is: less why can someone explain me
#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++
EXplain me about these function cin.clear(); cin.ignore(); tell me what function i use for flushing a input bufer in c and c++;
tell me sources or sites from where i can get detail inormation about ss7 protocol
consider the following statement & tell me why it i undetermined or ambigious int i=9; i=i++; PLS EXPLAIN ME FULLY
LOOK THE FOLLOWING STATEMENT int *p[](); PLS TELL ME THE MEANING OF THIS STATEMENT.& WHERE WE USE THIS STATEMENT.
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
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).
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
The End.
Sukhbir