Log in Register Dashboard Temp Share Shortlinks Frames API

abh - HTMLify profile

abh's Profile Picture

abh

523 Files

134631 Views

Latest files of /abh/learning/c/BPPL/Phase-1/pointers

swap.c abh/learning/c/BPPL/Phase-1/pointers/swap.c
74 Views
0 Comments
#include <stdio.h>

void swap(int *a, int *b) {
int t;
t = *a;
*a = *b;
*b = t;
}
strlen.c abh/learning/c/BPPL/Phase-1/pointers/strlen.c
41 Views
0 Comments
#include <stdio.h>

int strlen(const char str[]) {
int len = 0;
while (str[len] != NULL) {
len++;
}
return len;