Search:

Type: Posts; User: samirself

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Thread: recursion!!!

    by samirself
    Replies
    3
    Views
    1,380

    recursion!!!

    below i am trying to print fibonacci series using recursion.



    #include<stdio.h>
    #include<conio.h>

    int fib(int);

    int main()
  2. Replies
    2
    Views
    1,081

    new to trees --help reqd!!!

    trying to add integer values to a tree and printing values in-order.


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

    struct tree{
    int info;
    struct tree...
  3. Replies
    2
    Views
    1,567

    hey salem, friend i am ready put in the effort...

    hey salem,

    friend i am ready put in the effort as required because i want to improve each day.
    Thats all i can say. now its upto u if u can help me.

    Thanks
  4. Replies
    2
    Views
    1,567

    code improvement before i go further!!

    Hi everybody,

    i was performing some linked list operations,
    the code below adds node to the end of the list by using function
    add_node().

    first i created a node in main() and then the...
  5. Replies
    4
    Views
    1,100

    dont be angry sir ! this problem is coming with...

    dont be angry sir !
    this problem is coming with dev c++ but with turbo c++, what could be causing this
    const.exe is a another problem giving the same error.

    error signature
    AppName: const.exe ...
  6. Replies
    4
    Views
    1,100

    actually while executing it says .exe file has...

    actually while executing it says .exe file has encountered problems and need to close.
  7. Replies
    4
    Views
    1,100

    new to file handling!

    the following code which just displays file contents compiles successfully but give runtime error!!


    #include <stdio.h>

    int main()
    {
    FILE *fp;
    int c ;
  8. Replies
    3
    Views
    1,113

    post increment gives trouble !

    the following thing works normal swapping: but
    if change function call to

    swap(a++,b++);
    it dos'nt work why?



    #include<stdio.h>
    #include<conio.h>
  9. Replies
    12
    Views
    1,577

    i tried this on Dev-C++ and error:syntax...

    i tried this on Dev-C++

    and

    error:syntax error before ? token



    error:12 no matching function for call to `rotate(__gnu_cxx::__normal_iterator<char*
    correct it sir...
  10. Replies
    4
    Views
    1,702

    but i have declared i as static shd'nt it retain...

    but i have declared i as static shd'nt it retain its value, or how to correct it.
  11. Replies
    4
    Views
    1,702

    blank output screen !!

    the following code does not print anything . why?


    #include<iostream.h>
    #include<conio.h>
    void fn(int);

    int main() {
    fn(10);
    getch();
  12. Thread: tc beeps !!

    by samirself
    Replies
    3
    Views
    1,371

    tc beeps !!

    whenever i start my turbo c++ 3.0 , sometimes its starts beeping.

    also, command prompt window is opened( in the background)which contains the output of all programs for time i have worked.

    is...
  13. Replies
    16
    Views
    4,336

    should,nt it print %d itself

    should,nt it print %d itself
  14. Replies
    16
    Views
    4,336

    What is the output of printf("%d");

    yes i got 1192 as the output.

    how this works !!

    thanx
    sam
  15. Replies
    12
    Views
    1,577

    invoke the compiler with the switch "-ansi" ...

    invoke the compiler with the switch "-ansi"

    ?????????????????sorry but how?
  16. Replies
    12
    Views
    1,577

    currently i am using Turbo C++ Version 3.0,...

    currently i am using Turbo C++ Version 3.0, salem comments hint that i shd upgrade
    so what shd i do...........
  17. Replies
    12
    Views
    1,577

    i think i am playing with one character at a...

    i think i am playing with one character at a time..............

    and what if main() returns nothing !!
  18. Replies
    12
    Views
    1,577

    Thantos dear, i wld love to read and accept ur...

    Thantos dear, i wld love to read and accept ur comments

    and thank u Salem for replying.
  19. Replies
    12
    Views
    1,577

    can this small code be improved !!

    this code just circularly shifts the given string,
    n(=4) is the no. of charactars to be shifted

    input: sab ulta ho gya
    output: gyasab ulta ho

    now, can there any refinements !!!!!!!!...
  20. Replies
    6
    Views
    1,644

    thank u guys, u r great!!!1

    thank u guys, u r great!!!1
  21. Replies
    6
    Views
    1,644

    thanks for replying but just tell me ...

    thanks for replying
    but just tell me

    ***a+1=3?
    i mean which 3 and why??
  22. Replies
    6
    Views
    1,644

    [B]a basic doubt !![/B]

    i just run the following code.



    #include<stdio.h>
    main( )
    {
    int a[2][3][2] = {{{2,4},{7,8},{3,4}},{{2,2},{2,3},{3,4}}};
    printf("%u %u %u %d \n",a,*a,**a,***a);
    printf("%u %u %u %d...
  23. Replies
    4
    Views
    926

    run time error

    the following code compiles sucsessfully but gives a runtime error!



    #include<stdio.h>
    #include<conio.h>
    main()
    {
    int i,j,k;
    clrscr();
  24. Replies
    1
    Views
    2,497

    initialize 2D array!

    how to initialize 2D array.

    following is not a code but just for my concept, plz tell if it is correct
    n how
    array having x rows n y columns

    array=(int **)malloc(x*sizeof(int *)...
  25. Replies
    7
    Views
    1,246

    plz write it in a corect manner,if possible,...

    plz write it in a corect manner,if possible,
    thanks
Results 1 to 25 of 32
Page 1 of 2 1 2