Search:

Type: Posts; User: karthigayan

Page 1 of 3 1 2 3

Search: Search took 0.01 seconds.

  1. Replies
    1
    Views
    726

    Close(filedescriptor) problem.

    Hi all,

    My requirement is to connect with the server if it is up ,the client will keep on trying to connect with the server till the successful connection.So I have created the socket fd using the...
  2. Replies
    3
    Views
    922

    Thanks for your reply . The command is a start up...

    Thanks for your reply . The command is a start up of an application.It self it gets backgrounding and it is not taking too much time to execute.the thing which I want is to execute the command and...
  3. Replies
    3
    Views
    922

    Issue with system()

    Hi all,
    In my code i am using system() function to execute the command which puts the job in background.the system() function executes the command and also it gets executed successfully .But...
  4. Replies
    10
    Views
    1,771

    Use switch , #include main()...

    Use switch ,




    #include<stdio.h>

    main()
    {
    int op;
  5. Here is the example for using system(), ...

    Here is the example for using system(),



    #include<stdio.h>
    main()
    {
    system("test.exe 5434 localhost");
    }
  6. Replies
    3
    Views
    926

    Actually you have to print the address , is it...

    Actually you have to print the address , is it .If you want the print the address of the variables you have to use '&' since you are trying to get the variables address.If you give the pointer there...
  7. Replies
    4
    Views
    1,286

    Every thing is ok.other than the '%n' in the...

    Every thing is ok.other than the '%n' in the scanf .You have to use '%d' is it .



    # include<stdio.h>

    int funct1(int n);

    int main()
    {
  8. Replies
    4
    Views
    1,175

    I tried your code in my linux machine . there is...

    I tried your code in my linux machine . there is no problem ,the expected output came correctly .



    #include<stdio.h>
    main(int argc,char argv[]){
    int i=0;
    int arr1[40]={0};...
  9. Replies
    16
    Views
    2,889

    Like this we can return the array , ...

    Like this we can return the array ,



    #include<stdio.h>
    #include<stdlib.h>

    char* teste(char* s)
    {
    char *tok = (char *)malloc(3);
  10. Replies
    2
    Views
    864

    Just change these lines , if(sort_m =...

    Just change these lines ,



    if(sort_m = 1){
    to
    if(sort_m == 1){ // Use == for comparison


    and
  11. Thread: pointer

    by karthigayan
    Replies
    3
    Views
    841

    The problem is that the *ptr has no values when...

    The problem is that the *ptr has no values when you assign that to b.So it assigns the garbage value in the *ptr to b.After assigning that only you have get the value of a .Now that a's value will in...
  12. The Editors are just used to type your code . You...

    The Editors are just used to type your code . You can not run it straightaway,because it can not understand by the computer . You need to compile it to remove the errors and make that as a object...
  13. Replies
    6
    Views
    1,982

    It took me 6 months to finish K&R. It is a bible...

    It took me 6 months to finish K&R. It is a bible of C programming .
  14. Replies
    5
    Views
    9,067

    If you want to append character to a char * you...

    If you want to append character to a char * you need to allocate memory for that .



    #include<stdio.h>
    #include<string.h>
    #include<malloc.h>
    main()
    {
    char *a="Hello ";
  15. Replies
    18
    Views
    2,609

    Try this , you will get to know the problem. ...

    Try this , you will get to know the problem.



    #include<stdio.h>
    #include<string.h>
    main()
    {
    int arr[10];
    char arr2[10]="abcdefghi"; // Initialize the array
  16. Replies
    13
    Views
    1,437

    What is the input you gave for the option ....

    What is the input you gave for the option . Otherwise post the output you got.
  17. Replies
    13
    Views
    1,437

    When you print the results you used %d .But the...

    When you print the results you used %d .But the values are floating point values . So use %f.



    #include <stdio.h>
    #include <stdlib.h>

    int main ()

    {
  18. Replies
    13
    Views
    1,437

    Infact I commented the statement ...

    Infact I commented the statement



    system("Pause");


    Just remove the comment in that statement .
  19. Replies
    13
    Views
    1,437

    The problem is the that you have checked the...

    The problem is the that you have checked the storelocation values as a character .But it is a integer .



    #include <stdio.h>
    #include <stdlib.h>

    int main ()

    {
  20. Thread: C graphics

    by karthigayan
    Replies
    3
    Views
    1,201

    C graphics

    Hi all,
    I want to do graphics applications in C under linux system.Can any one guide me to some good tutorials.
  21. Replies
    9
    Views
    1,323

    Answer for your first question : ...

    Answer for your first question :
    If you want to read a line from the file you have to use the function fgets.It will read the entire line . I thing you used fscanf there .It will read...
  22. Replies
    8
    Views
    1,847

    Use this code, #include #include...

    Use this code,



    #include<stdio.h>
    #include <string.h>
    #include<stdlib.h>
    char *replace(char *str, char *from, char *to);

    main()
  23. Replies
    2
    Views
    1,257

    The exact problem is in this line , ...

    The exact problem is in this line ,



    serverAddr.sin_addr.s_addr = htonl(inet_addr(ip));


    It should be,
  24. Replies
    6
    Views
    1,671

    If you are working in linux machine you can get...

    If you are working in linux machine you can get the online file using the command wget.



    wget www.example.com/golf.txt


    It will store in a particular file in the...
  25. option (d) is correct . The C Book — Linkage...

    option (d) is correct .

    The C Book — Linkage
Results 1 to 25 of 64
Page 1 of 3 1 2 3