How to make the parent process wait till the completion of execution of child process. The following C program makes the parent process to wait till the completion of its child process.
#include<stdio.h>
main()
{
int pid;
pid=fork();
printf("%d\n",pid);
if(pid==0)
{
printf("From child process \n");
}
else
{
wait(0);
printf("From parent process\n");
}
}
Search This Blog
Showing posts with label for. Show all posts
Showing posts with label for. Show all posts
C and C++ Compiler For Android Smartphones
In this post i'm listing some C Program compilers for Android phones or tabs. It will be very handy if you have one in your phone if you are a programming student. You don't need to have a laptop or a Personal computer with you.
It is a powerful offline C/C++ IDE + C/C++ compiler for Android operating System. I have been using it for 1 year. You do not need to root your phone to use this app. Its features are as listed below:
Playstore link to the Application

Features:
Find it in Google playstore
C4Droid
It is a powerful offline C/C++ IDE + C/C++ compiler for Android operating System. I have been using it for 1 year. You do not need to root your phone to use this app. Its features are as listed below:
- Syntax highlighting
- Multiple tabs
- code complete
- Auto formating
- Options to export the program as apk or other Executables
- Full ANSI C and ISO C99 support with TCC (Tiny C Compiler) + uClibc
- Customizable Graphical User Interface with themes
- C++ support with GCC+
- Debugger with breakpoints and watches
C4Droid screen shot |
Playstore link to the Application
CppDroid - C/C++ IDE
This is another offline compiler but it is freeware app. Rooting is not required. You don't have to pay for it. It is designed for educational purposes as the developer says, "CppDroid is simple C/C++ IDE focused on learning programming languages and libraries".Features:
- real-time diagnostics (warnings and errors) and fixes
- syntax highlighting
- portrait or landscape UI
- C/C++ code examples and guides
- GUI customisation with themes
C Compiler
A very simple and basic C compiler for Android phones. Not many features.Find it in Google playstore
Subscribe to:
Posts (Atom)