Search:

Type: Posts; User: Kokila

Search: Search took 0.01 seconds.

  1. Thread: simple for loop

    by Kokila
    Replies
    4
    Views
    978

    Thanks for all the responses.

    Thanks for all the responses.
  2. Thread: simple for loop

    by Kokila
    Replies
    4
    Views
    978

    simple for loop

    #include <stdio.h>

    void main()
    {
    int x;
    for(x=10;x;x--)
    printf("%d\n",x);
    }

    In the above program, the output is printing from 10 to 1. But I didn't give any lower limit. How is it...
  3. Replies
    3
    Views
    14,996

    2's complement in C

    Hai,

    1) In one book, I have read that in C Programming, to store negative numbers , 2's complements are used. Why is it like that ? Is there any advantage to use 2's complement?(Positive numbers...
  4. Replies
    3
    Views
    1,200

    Virtual fuction in C++

    Hi ,

    What is the need of virtual function in C++? Here is my program:

    #include<iostream.h>

    class parent
    {
    public:
    virtual void display()
  5. Thread: String length

    by Kokila
    Replies
    4
    Views
    1,651

    String length

    I have tried the following program:

    #include<iostream.h>
    #include<fstream.h>
    #include<string.h>

    class Member
    {
    private:
    int Age;
  6. Replies
    6
    Views
    13,130

    Thank you very much for your replies. Now I have...

    Thank you very much for your replies. Now I have some idea about your discussion.

    -Kokila.
  7. Replies
    6
    Views
    13,130

    diff btn getc() & getchar()

    What is the difference between getc() and getchar() functions?
    Anybody can explain with example?
  8. Replies
    3
    Views
    3,565

    About Array Index

    #include <stdio.h>
    void main()
    {
    int array[9]={1,2,3,4,5,6,7,8,9};
    int i=-1;
    while (i<8)
    {
    printf("The Element is %d and its index is %d\n", array[i],++i);
    }
    }
Results 1 to 8 of 8