0

This image is of the code I've entered in VSC

This is the image that shows the error in getting

I was going through a youtube tutorial to learn about forks in C when I entered the above-mentioned code it gave me this error -

#include errors detected. Please update your includePath. Squiggles are disabled for this translation unit (F:\C\fork.c).C/C++(1696) cannot open source file "unistd.h"C/C++(1696)

The code is:

#include<stdio.h>
#include<string.h>
#include<stdlib.h>
#include<unistd.h>

int main(int argc, char* argv[])
{
    fork();
    printf("Hello world");
    return 0;
}

0 Answers0