Search:

Type: Posts; User: rekha_sri

Search: Search took 0.01 seconds.

  1. Thread: puts array

    by rekha_sri
    Replies
    21
    Views
    3,795

    Hi meher81, Whatever Subsonics asked to change...

    Hi meher81,

    Whatever Subsonics asked to change in your code I used to change.
    Following code with the changes insteadof sizeof(t) I mentioned strlen(t) with string.h header file, for me it's...
  2. Thread: puts array

    by rekha_sri
    Replies
    21
    Views
    3,795

    Hi, Use the following program printing an...

    Hi,

    Use the following program printing an array elements in an reversing order.




    #include<stdio.h>
    #include<string.h>
    main()
  3. Replies
    4
    Views
    1,434

    Use the following program for getting the file...

    Use the following program for getting the file attributes using stat function.



    #include <stdio.h>
    #include <sys/stat.h>

    struct stat stResult;

    main()
  4. Use the following program.It will not get...

    Use the following program.It will not get warning.



    #include <stdio.h>
    #include <sys/types.h>
    #include <dirent.h>
    #include <errno.h>
    #include<string.h>
    #include<stdlib.h>
  5. Replies
    7
    Views
    24,471

    printf() function sends output to stdout and...

    printf() function sends output to stdout and fprintf() is used to specify the output stream.
    fprintf() we can use this to print into a file.




    printf("Hai friends\n"); //This will print...
  6. Replies
    8
    Views
    10,116

    Hi, Following program gets the input from the...

    Hi,

    Following program gets the input from the user. If the user didn't give the boy or girl,it will say
    Invalid input,Try again! and continue to get another valid input from the user. This...
  7. Replies
    3
    Views
    1,016

    You asked better way to copy the first two...

    You asked better way to copy the first two elements from the array1 and three elements from array2 and stored into array3.Following example better way for your requirement.
    If you use this program...
  8. Try the below program,you can get the correct...

    Try the below program,you can get the correct output what did you expect.
    In this program I have changed the scanf.


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

    int main()
    {
    int i = 0;
  9. Dear Friend, scanf default separator is...

    Dear Friend,

    scanf default separator is space.So that first time it used to get the first name and last name will be overwrite with first name. If you use \n as a separator you will get the...
Results 1 to 9 of 9