Search:

Type: Posts; User: mohnish_khiani

Search: Search took 0.01 seconds.

  1. how does typedef work in this question ???

    typedef int c[12];
    c name={1,2,3,4};
    cout<<name[0];



    how does the above code work ??
  2. Replies
    4
    Views
    1,337

    char pointer and int pointer

    these are valid :


    char str[5]="good";
    int a[3]={1,2,3};

    char *p="hello";

    but why is this wrong then :
  3. Replies
    6
    Views
    950

    data type mis-match in pointers

    #include<stdio.h>
    #include<conio.h>
    #include<stdlib.h>
    void main()
    {
    int a=10,*x=&a;
    float *b;
    float c;
    clrscr();
    b=&a;
  4. Replies
    6
    Views
    1,020

    yaa it prints world the second time....thus...

    yaa it prints world the second time....thus resulting in unpredictable behaviour...
  5. Replies
    6
    Views
    1,020

    Then what is the use of delete or free when we...

    Then what is the use of delete or free when we can retrieve the value after using them???
  6. Replies
    6
    Views
    1,020

    delete is not deleting the value???

    why is it happening so???


    void main()
    {
    char *x="hello";
    printf("%s \n",x);
    delete x;
    printf("%s \n",x);
    getch();
  7. Replies
    14
    Views
    2,100

    @all....thank you everyone...got it........

    @all....thank you everyone...got it.....
    ......can i continue asking my doubts on this forum...or am i at the wrong place???
  8. Replies
    14
    Views
    2,100

    thank you Tater.....but the question i asked was...

    thank you Tater.....but the question i asked was just out of my curiosity...i couldn't find it in my books which goes on comparing the effects of keywords in this case coz there can then be many...
  9. Replies
    14
    Views
    2,100

    @rogster001....thank you. @adeyblue...who ever...

    @rogster001....thank you.

    @adeyblue...who ever u may be.....these are not my "QUIZ QUESTIONS" as u think....can't answer them...just mind our own work rather than scribbling some crap here...no...
  10. Replies
    16
    Views
    1,737

    k....thanks

    k....thanks
  11. Replies
    16
    Views
    1,737

    what i understood is that when a variable is...

    what i understood is that when a variable is declared as static it doesn't loose it's value even if the scope of the function within which it is declared is finished and a global variable is the one...
  12. Replies
    16
    Views
    1,737

    sorry for that #define blunder...it's solved...

    sorry for that #define blunder...it's solved now....
    but i still didn't get the difference b/w the two declarations...regarding there scope,lifetime and usage


    #include<stdio.h>...
  13. Replies
    14
    Views
    2,100

    const and #define

    what,where and how will there be differences in constant declaration when this is done:

    #define a 10
    (or)
    const int a=10;
  14. Replies
    16
    Views
    1,737

    no no this is a doubt i had...... then how is...

    no no this is a doubt i had......

    then how is the declaration of q different if had declared it as

    extern int q;
  15. Replies
    16
    Views
    1,737

    #include #include static int...

    #include<stdio.h>
    #include<conio.h>
    static int p=10;
    int q=10;
    void main()
    {
    printf("%d %d",p,q);
    getch();
    }
  16. Replies
    16
    Views
    1,737

    sorry for that....

    sorry for that....
  17. Replies
    16
    Views
    1,737

    Why did this not work????

    #include<stdio.h>
    #include<conio.h>
    #define a 90;
    void main()
    {
    char x=a;
    int b=10;
    float c=30.0f;
    clrscr();
    printf("%c %f \n",x,c);
Results 1 to 17 of 17