Skip to content

Latest commit

 

History

History
19 lines (14 loc) · 551 Bytes

README.md

File metadata and controls

19 lines (14 loc) · 551 Bytes

c_basic_examples

This repository contains basic examples in the C language to cover topics like variable initialization, flow control, basic pointer arithmetic etc.

Implement a function that reverses a string

char *reverseString(char* _string);

Implement a function that counts the occurrence of a given character in a given string

int countOccurrence(char *_string, char _c);

Implement a function that sorts the characters of a string in alphabetically ascending order ("a"<"b")

char* sortAsc(char* _string);