hi guys
I tried with his example but no error in my case and also I got some strange results
can something explain me why
(I)
int main(int argc, char *argv[])
{
char *t="hello",*r;
r=t;
*t='H';
printf("%s",t);
return(1);
}
result :: -> Hello
(II)
int main(int argc, char...
User Profile
Collapse
-
ssehgal2010 replied to how to find a variable in a given list and replace/delete them according to our wishin Chi Nayeef below is the code which I wrote long back for finding a number in a list and replacing desired one
this is C code only using linked list.
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define EXITSUCC 1;
#include <conio.h>
void push(struct node** , int i );
void insert(struct node** , int , int );
struct...Leave a comment:
-
hey Koder
that error exist only if either that file doesn't exist or you mistype file name
check the parameters and then run again the commandLeave a comment:
-
HI
Below is the code which I wrote for one application in JAVA
in this I used Hash I think it may help you a little
import javax.servlet.S ervletException ;
import javax.servlet.h ttp.HttpServlet ;
import javax.servlet.h ttp.HttpServlet Request;
import javax.servlet.h ttp.HttpServlet Response;
import java.io.*;
import java.util.*;
import javax.servlet.* ;...Last edited by ssehgal2010; Sep 6 '06, 08:54 AM. Reason: want to delete some un necesary informationLeave a comment:
-
#include "stdio.h"
The compiler will search for a particular stdio.h in the current working directory only
where as <stdio.h> the complier looks into default dir. which is in most cases /include/lib or you can define this directory by your own.Leave a comment:
-
hi memory to a veriable allocated the time it is declered
i.e. int a[100] allocates 100 integer memory locations to this array
even if u r not using all.
thats why the concept of dynamic memory allocation came into picture to utilise the memory efficiently.Leave a comment:
-
hi banta
i believe pointer's size depends upon their type
like for following code
#include<stdio. h>
main(){
char *ptr;
long *p;
printf("%d\t%d\ n",sizeof(*ptr) ,sizeof(*p));
exit (2);
}
the output is
1 4Leave a comment:
-
Hey Banfa can you eleborate this
Suppose I am using Turbo C++ then what exactly I should use in through command line
Thanks in advanceLeave a comment:
-
In short you want to create the dynamic array
You can take approach of singly linked list hereLeave a comment:
-
Hi
Getting integer array size is prettry simple
Lets say I have int array i[5]
then
sizeof(i)/sizeof(i[0]) will give me 5 i.e. the length of integer arrayLeave a comment:
No activity results to display
Show More
Leave a comment: