Answers for "c add element to array"

56

javascript add new array element to start of array

var colors = ["white","blue"];
colors.unshift("red"); //add red to beginning of colors
// colors = ["red","white","blue"]
Posted by: Guest on July-23-2019
0

how to add in array in c

#include <stdio.h>
int main(){
	char str_value[100];
	printf("Enter the string : ");
	scanf("%s",&str_value);
	printf("%s",str_value); 
	return 0;  
}
Posted by: Guest on September-08-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language