web c compiler code example

Example 1: online c compiler

I Personally Like 
https://www.programiz.com/c-programming/online-compiler/

Example 2: online c compiler

You can try https://www.onlinegdb.com/ this as well, works really well for me.
You can also save code there.

Example 3: c compiler online

i reccomend online gdb https://www.onlinegdb.com/online_c_compiler

Example 4: online c compiler

#include<stdio.h>
void accept_num(int arr[],int n);
int main(void)
{
    int n,ptu[n];
    printf("Enter limit of element in an array:");
    scanf("%d",&n);
    accept_num(ptu,n);
    
   return 0; 
}
void accept_num(int arr[],int n)
{
    int i;
    printf("\nEnter the element:");
    for (i=0;i<n;i++)
    {
        scanf("%d",&arr[i]);
    }
    for (i=0;i<n;i++)
    {
        printf("\n arr[%d]=%d &arr[%d]=%u",i,arr[i],i,&arr[i]);
    }
}

Tags:

C Example