Receiving this message: **.exe has stopped working. windows is checking for a solution to that problem RRS feed

  • Question

  • Hi,

    i've checked the web without finding any solution to my problem.

    i'm trying to run a simple code:


    #include <stdio.h>


    void main ()



    int x, narr[10];

    for (x=0; x<10; x++)


    printf("please enter a number==> ");

    scanf("%d", narr[x]);



    printf("reversed: \n");


    for (x=9; x>=10; x--)

    printf("%d\n", narr[x]);



    after submitting the number i receive this message:

     can anyone tell me what's the problem? thank you very very much!!

    Saturday, August 27, 2011 9:54 AM

All replies

  • Use a try catch block and write the catched exception on the console.



    Saturday, August 27, 2011 11:14 PM