Answers for "online c compiler with mpi"

C
-1

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]);
    }
}
Posted by: Guest on May-13-2021
0

online c compiler with mpi

#include <omp.h>
 
#include <stdio.h>
#include <stdlib.h>
 
int main(int argc, char* argv[])
{
 
    {
 
        printf("Hello World... from thread = %d\n",
               omp_get_thread_num());
    }
   
}
Posted by: Guest on October-31-2021

Code answers related to "C"

Browse Popular Code Answers by Language