Search:

Type: Posts; User: ganesh bala

Page 1 of 3 1 2 3

Search: Search took 0.01 seconds.

  1. Replies
    5
    Views
    5,834

    Factorial 100!

    How can i find factorial of 100! ?



    >> which data type can i use?.
    >> I didnt get answer even i used double,long double data type.
  2. Thanks matsp for ur Timely help.... Now its...

    Thanks matsp for ur Timely help....

    Now its Working ............



    while...........
    {
    ++i;
    str=(char *)realloc(str,sizeof(char)*40*i);
  3. Fgets to read dynamicallly 4m keyboard????

    How to read dynamically( any no of chars) from Keyboard using fgets...

    I am new to fgets.. Help me please......

    I tried ... where i have to make change...




    int main()
  4. Replies
    2
    Views
    3,622

    Passing FIle pointer as argt

    I want to pass input and output file as command line arguments...

    I want output file pointer have to be passed as argument to a function..

    How can i do it? Is this Ok??

    But I am getting...
  5. Replies
    9
    Views
    1,843

    Its not Home Work .. Just i want to know it ......

    Its not Home Work .. Just i want to know it ... ;):eek:
  6. Replies
    9
    Views
    1,843

    Thanks a lot vkaushal21.. I am just Learning...

    Thanks a lot vkaushal21..
    I am just Learning Data structures..
  7. Replies
    9
    Views
    1,843

    Tree Traversal..

    Hi,

    for this, 0123456789 i constructed Binary search tree... now,i want to know

    preorder,postorder for this.....

    ...
  8. Replies
    9
    Views
    4,430

    First U have to Learn C.. Then only U can learn...

    First U have to Learn C.. Then only U can learn other Languages easily....

    ..

    U Hav 2 clear in Basic like variables,constants,datatypes,conversions etc;.. then only its easy 4 learn other...
  9. Replies
    4
    Views
    2,586

    flaot -double comparison

    I m getting equal as output...

    My doubt is float compared with double in if statement,
    then it should b unequal right??

    Is it something like type conversion?? I want just to clarify this...
  10. Replies
    14
    Views
    2,246

    f should b in single quote as it is a char... ...

    f should b in single quote as it is a char...

    use int main .. dont use void main..
  11. Replies
    22
    Views
    2,730

    :D Thanks tabstop for ur Simple and nice...

    :D Thanks tabstop for ur Simple and nice Explanation .. I understood
  12. Replies
    22
    Views
    2,730

    Pointer expr *--*++p+3 ???

    *--*++p+3 ==> i dnt know how this expr is evaluated... I m getting ck as output..




    static char *s[]={"black","white","yellow","violet"};
    char **ptr[]={s+3,s+2,s+1,s},***p,*gt;
    ...
  13. Thread: size of

    by ganesh bala
    Replies
    3
    Views
    1,084

    addr=4 ... sizeof array is 5*4=20 .. right!! I m...

    addr=4 ... sizeof array is 5*4=20 .. right!! I m beginner.. thats why i was confused.. i try to avoid posting these type of questions!!
  14. Thread: size of

    by ganesh bala
    Replies
    3
    Views
    1,084

    size of

    size of below arr is 20.. How it is??.. Can anyone explain it?...



    char *a[]={"Oneon", "Twotw", "Three", "Fourinnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn", "Fivei" };
  15. Replies
    6
    Views
    1,467

    Pointers and 2DArray

    In below code, I am getting following error.. why it happens? .. i

    How to assign it to pointer str? [ without changing a[5][10] to other notation]


    cannot convert `char (*)[10]' to `char**'...
  16. Replies
    3
    Views
    1,960

    Thanks laserlight.. i just used var-name as macro...

    Thanks laserlight.. i just used var-name as macro name to check which one gets printed..

    Now i m clear.. Thanks zacs7 for pointing out.. i try to use proper English :-)..
  17. Replies
    3
    Views
    1,960

    preprocessing

    I m getting output as 3 4.

    How its evaluated? ..

    My doubt is preprocessing happens b4 compiling.. then why first printf not printing 4..

    Is it something like scope??
  18. Replies
    4
    Views
    2,291

    What about this?? printf(&a["Ya!Hello! how...

    What about this??



    printf(&a["Ya!Hello! how is this? %s\n"], &b["junk/super"]);

    &a["WHAT%c%c%c %c%c %c !\n"]
  19. Replies
    4
    Views
    2,291

    C Puzzle -Printf

    How output from below printf was

    "Hello! how is this? super
    That is C! "




    #include <stdio.h>
    int main()
  20. Replies
    8
    Views
    6,303

    Malloc -segfault

    The following C program segfaults of IA-64, but works fine on IA-32.



    int main()
    {
    int* p;
    p = (int*)malloc(sizeof(int));
    *p = 10;
    return 0;
  21. Replies
    3
    Views
    1,288

    doubt in printf ??

    I m getting only "This is". as output.

    How ????


    printf("This is \x0x65 C \x0x66");
  22. Thread: Pointer ??

    by ganesh bala
    Replies
    5
    Views
    1,104

    Pointer ??

    Can i assign address to a pointer Manually like this????

    can anyone explain this???




    int *ptr=0x4000;
  23. Replies
    4
    Views
    7,253

    Thanks matsp.. Still i m having doubt.... ...

    Thanks matsp..

    Still i m having doubt....



    that means outerone will be exec'd first.. if so,

    first one should also leads to a(34,56)... how 3456 is printed ??..
  24. Replies
    4
    Views
    7,253

    Nested Macros Evaluation??

    #include "stdio.h"
    #define a(x,y) x##y
    #define b(x) #x
    #define c(x) b(x)
    int main()
    {
    printf("%s\t",c(a(34,56)));
    printf("%s\n",b(a(34,56)));
    return 0;
    }
  25. Replies
    2
    Views
    1,254

    C Puzzle -Need Help..

    #include<stdio.h>

    #define MAX(x,y) ( x ) > ( y ) ? x:y
    main()
    { int i=10,j=5,k=0;
    k= MAX(i++,++j);
    printf("%d %d %d ",i,j,k);
    }

    Ans:12 6 11
Results 1 to 25 of 61
Page 1 of 3 1 2 3