answersLogoWhite

0

we define the array is

Array array[]={1,2,3,4,5} this is the integer Array

Array array[]={"apple","banana","carrot","mango"} this is the String Array

User Avatar

Wiki User

15y ago

What else can I help you with?

Related Questions

How do you declare an array alpha of 10 rows and 20 columns of type int?

int array[2][10][20];


Declare an array of 100 integers?

int array_name [100];


Is it possible to declare an array of numbers in an integer form?

Yes: int[] integerArray;


Declare an integer array marks that can be used to store 3 elements?

int[] marks = new int[3]; int marks[3];


What are the application of array in c?

Well, instead of having to type stuff like this: int foo = 0; int bar = 0; Etc., we can just declare an array of ints: int arrayOfInts[2]; Voilá!


How do you declare an N-Dimensional array using Malloc?

#include <stdlib.h> int **array1 = malloc(nrows * sizeof(int *)); for(i = 0; i < nrows; i++) array1[i] = malloc(ncolumns * sizeof(int));


Does this correctly create an array of 5 elementsint 5 myArray new int?

The syntax provided is incorrect for creating an array of 5 elements in most programming languages. In Java, for example, you would declare and initialize the array as follows: int[] myArray = new int[5];. This creates an array named myArray that can hold 5 integer elements.


How will you declare an array of three function pointers where each function receives two int and returns float?

typedef float (*pt_func)(int, int); pt_func arr[3];another way:float (*pt_func[3])(int, int);


How will you declare an array of three functions pointer where each function receives two ints and returns a float?

typedef float (*pt_func)(int, int); pt_func arr[3];another way:float (*pt_func[3])(int, int);


How do you initialize an array variable in java program?

An array in java is a collection of items stored into a single unit. The array has some number of slots (elements), each slot in the array can hold an object or a primitive value. Arrays in java are objects that can be treated just like other objects in the languageArrays can contain any type of element value , but we can't store different types in a single array. We can have an array of integers or an array of strings or an array of arrays.To create an array in java ,use three steps1. Declare a variable to hold the array2. Create a new array object and assign it to the array variable3. Store things in that array


Write a c program to find the maximum value of 25 element in an array?

int findMax(int *array) { int max = array[0]; for(int i = 1; i < array.length(); i++) { if(array[i] > max) max = array[i] } return max; }


How do declare function pointer having two integer parameters and returning integer pointers?

// declare a function int* function(int, int); or int* (function)(int, int); // declare a pointer to a function int* (*pointer_to_function)(int, int);

Trending Questions
What is the binary equivalent value of77? In Java you want to write a program that will prompt the user for a nonnegative value n the program will then do as follows in the discussion help please? Are lamps in house connected to series or parallel? How do you delete complete history on a video game? What advantage do double pane windows have over single pane? How does the intelligence signal modulates the carrier? What does a thermostat insulin pump and dam regulate? How does a cell division help an acorn become a tree? How many simple data types are there? A junior technician finds preventive maintenance very boring and would prefer to fix real problems However what is the most important reason for the company that the preventive maintenance be done? Explain why ladder logic outputs are coils? Why are there fewer ethical concerns associated with selective breeding than with other forms of genetic engineering'? What is the difference between auto and semi auto lathe? A half wave rectifier develops 20VDC what is the value of the ripple voltage? Is the most likely result of converting forestland to urban dWhich of the following is the most likely result of converting forestland to urban development A. Fewer trees are needeevelopment? Art And Science Of Employing Instruments Of National Power In A Synchronized And Integrated Fashion To Achieve Theater National And Objectives Is Called? What ia ic7805? Who invented the first tumble dryer? What is the important of computerized accounting to manual? What is an interface in visual basic?