User Profile

Collapse

Profile Sidebar

Collapse
ssehgal2010
ssehgal2010
Last Activity: Nov 28 '06, 04:31 AM
Joined: Aug 11 '06
Location: New Delhi
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • ssehgal2010
    replied to string modification
    in C
    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...
    See more | Go to post

    Leave a comment:


  • hi 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...
    See more | Go to post

    Leave a comment:


  • ssehgal2010
    replied to gcc-make
    in C
    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 command
    See more | Go to post

    Leave a comment:


  • ssehgal2010
    replied to I need Hashing program!!!!
    in C
    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.* ;...
    See more | Go to post
    Last edited by ssehgal2010; Sep 6 '06, 08:54 AM. Reason: want to delete some un necesary information

    Leave a comment:


  • ssehgal2010
    replied to about preprocessor in c
    in C
    #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.
    See more | Go to post

    Leave a comment:


  • ssehgal2010
    replied to About Variable declaration in C
    in C
    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.
    See more | Go to post

    Leave a comment:


  • ssehgal2010
    replied to Problem in pointer size!!
    in C
    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 4
    See more | Go to post

    Leave a comment:


  • ssehgal2010
    replied to using 2 source code
    in C
    Hey Banfa can you eleborate this
    Suppose I am using Turbo C++ then what exactly I should use in through command line
    Thanks in advance
    See more | Go to post

    Leave a comment:


  • ssehgal2010
    replied to variable array size (constant problem)
    in C
    In short you want to create the dynamic array
    You can take approach of singly linked list here
    See more | Go to post

    Leave a comment:


  • ssehgal2010
    replied to how to know size of integer array?
    in C
    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 array
    See more | Go to post

    Leave a comment:

No activity results to display
Show More
Working...