MCPcopy Create free account
hub / github.com/CodeWithHarry/The-Ultimate-C-Programming-Course / main

Function main

Chapter 8/01_strings.c:3–13  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1#include <stdio.h>
2
3int main(){
4 // char st[] = {'a', 'b', 'c', '\0'};
5 char st[] = "abc"; // Same as doing char st[] = {'a', 'b', 'c', '\0'};
6 for (int i = 0; i < 3; i++)
7 {
8 printf("Character is %c \n", st[i]);
9 }
10
11
12 return 0;
13}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected