Day 7 Training

character array: 

style 1

char arr[]={'a','b','c'};


style 2

char arr2[10];

arr[0]='c';

arr[1]='e';


style3

char sample2[6]="sample";




Functions: 


Block of code but it has a task to complete

Set of instructions to complete a task 

To make it readable 

To avaoid repetition of code


structure: 


return_type functionName(parameters)

{


//body of the function


}


parameters=arguments 

Post a Comment

0 Comments