Quantcast
Channel: CodeChef Discuss - latest questions
Viewing all articles
Browse latest Browse all 39796

Runtime Error(SIGSEGV) plz help below my code

$
0
0
#include<stdio.h>


int main()
{
    int i=0,j[5],k=0;
    while(i!=5)
    {
              scanf("\n%d",&j[i]);   
              i++;  
    }
    while(j[k]!=42)
    {
                   printf("\n%d",j[k]);
                   k++;
    }

    return 0;
}

Viewing all articles
Browse latest Browse all 39796

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>