it was asked by someone to me. I have only IA32. The int* is unsigned integer (as pointing to an address) and int both have same size of 64bits...
int main() { int* p; p = (int*)malloc(sizeof(int)); *p = 10; return 0; } Though this works fine on IA-32, but...
Thanks a ton xpi0t0s!! Its was a great info!!:happy:
thats fine.. but what is going wrong when d=-1 ? Thanks
Hi, the following code compiles well but its nt showing output. Please specify what may be the error.. #include<stdio.h> #define...
i am not able to view the site due to some plugins problem as i dont have a net connection and i am using this internet through a cyber...
the code for the quicksort that i implemented is as below : //******************** this routine implements quick sort taking first element as...
i can skip the statement x=1,but i wanted to do it through stack overflow.I am using linux machine with AMD64 processor..i going through all the...
hello, i want to intentionally bypass the statement x=1; in the below program.but was unable to do. i am using gcc and gdb on fedora 8 linux on...
thanks buddy.. that worked!!! :)
there are two files: /************ stack.check.c */ #include<stdio.h> #include"tree_stack.c" struct node { int element; struct node* next;...
hey, thanks all for the help. I tried using fflush just before calling scanf function like: fflush(stdin ); scanf("%c",ch);...
thank again for help :) i have actually given the entire susceptible code which might cause problem.and believe me it that simple as i have...
thanks for reply... :) as u said-"scanf and family are best used when the exact input format is completely known". in my case the format is...
thanks again for replying.. actually my struct isa someth like.. in file stack_check.c #include<stdio.h> struct node { int element; struct...
if so then why i am getting this problem when i took int ch and now as option i ask for 0/1 and very nicely scanf is obliging now. if the problem...
i have a structure struct node { int element; struct node* next; }; in one file "tree_stack.c" i have other file check_stack.c in which...
thanks for the reply,sir. i have bypassed this problem using int variable instead of char.so now i want know why this happened?whats going on...
Please see the red marked statements below.If i try printf("%d",ch) instead of printf("%c",ch) then the loop is infinte before running for once...
Separate names with a comma.