Search Results

Search: Posts Made By: vincent__tse
1,538
Posted By vincent__tse
printf function
[QUOTE]#include<stdio.h>

int counter;
int fibonacci(int n)
{
counter += 1;
if ( n <= 2 )
return 1;
else
return fibonacci(n-1) + fibonacci(n-2);
}

int...
1,183
Posted By vincent__tse
about realloc routing
#include <malloc.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>

int*
allocat_array(void)
{
int *array;
int tmp;
int n_values = 0 ;

array =...
3,743
Posted By vincent__tse
Segmentation fault
#include<stdio.h>
#include<malloc.h>
#include<unistd.h>
#include<stdlib.h>

void *start_1(void *argv)
{
printf("thread 0x%x\n",(unsigned int)pthread_self());
pthread_exit((void*)1);
}
void...
1,343
Posted By vincent__tse
about the keyword "restrict"
#include<stdio.h>
#include<stdlib.h>

void function(int *restrict a, int *restrict b);

int
main()
{
int c;
int *a, *b;
a = &c;
b = &c;
printf("main function\n");
...
Showing results 1 to 4 of 4

 
All times are GMT -4. The time now is 05:36 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy