Tags » C Program

Q84: Fork behavior

Question 84: What will be the output of the following program:

if ( fork() )

{ printf(“Parent Process\n”);

wait(NULL);

printf(“Waited for child\n”);

}

else

{ printf(“Child Process\n”); 68 more words

GATE

Palindrome Number

#include

int main ()
{
char word, temp;
printf (“Enter a word: “);
scanf (“%s”, word);

int i = 0;
int length = 0;

while (word[i] != NULL) 52 more words

C Programming

For loop

#include
int main ()
{
int i;
for (i = 0; i <= 10; i++)
printf ("%d ", i);

return 0;
}

Code: Salma Sadia

C Program

CPro051

Dear Readers,

Greetings from Orange Research Labs!

Programmer: Madhu P

Contact: madhu@orangeresearchlabs.com

/* PROGRAM TO PRINT PASCAL TRIANGLE OF ‘n’ SIDES */

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

long factorial(int); 85 more words

CPro

CPro050

Dear Readers,

Greetings from Orange Research Labs!

Programmer: Madhu P

Contact: madhu@orangeresearchlabs.com

/* sum of Fibonacci series from 100 to 200 */
#include<stdio.h>
#include<string.h>

int main() 37 more words

CPro

CPro049

Dear Readers,

Greetings from Orange Research Labs!

Programmer: Madhu P

Contact: madhu@orangeresearchlabs.com

/* program for next palindrome number */

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

int main(int argc,char*argv[])
{ 62 more words

CPro

CPro048

Dear Readers,

Greetings from Orange Research Labs!

Programmer: Madhu P

Contact: madhu@orangeresearchlabs.com

/* Program for leap year or not */

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

int main(int argc,char*argv[]) 63 more words

CPro