answersLogoWhite

0


Best Answer

I'm assuming you are asking about an Array with {1,2,3,4} then the length would be the number of elements: 4.

User Avatar

Wiki User

16y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Assume int t 1 2 3 4 What is tlength?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

How do you add two numbers in c language?

int a = 1 + 2; ---------- int a = 1; int b = 2; a += b;


Write a program which will display the list of even and odd numbers?

In Java:System.out.println("Even numbers")for (int i = 2; i


How do you solve int of x sq plus int of y sq equals 1 -- I need to sketch the region?

I assume that Int(x) represents the integer part of the number x. This is not a function since it is a many-to-many mapping. If it is a real valued mapping, the domain is at most [-1, 1] When x = -1 or x = 1, then y is in [0, 1); When x is in (-1, 1), then y is in [1, sqrt(2)).


Find an example or a recursive procedure and represent it as an iterative procedure?

int recursiveNFactorial (int n) { if (n < 2) return 1; if (n == 2) return n; else return n * recursiveNFactorial (n - 1); } int iterativeNFactorial (int n) { int result = 2; if (n < 2) return 1; while (n > 2) result *= n--; return result; }


Given 2 int arrays a and b each length 3 return a new array length 2 containing their middle elements?

Java solutionpublic static final int[] getMiddle(final int[] a, final int[] b) {return new int[] {a[1], b[1]};}C solution void getMiddle(const int a[], const int b[], int ret[]) {ret[0] = a[1];ret[1] = b[1];}


What is the firing order for a 1983 4 cylinder Nissan pickup truck with 8 spark plugs?

CCW rotation 1-3-4-2 / 1 ex, 1 int / 3 int, 3 ex / 4 int, 4 ex / 2 ex, 2 int


Display the prime numbers in 1-100 by C plus plus?

#include <iostream> bool isPrime(int p) { if( p<=1 ( p>2 && p%2==0 ))return( false );int max = (int)sqrt(( double ) p ) + 1; for( int i=3; i<=max; i+=2 )if( p%i==0 )return( false );return( true ); } int main() { for( int i=1; i<100; i>2?i+=2:++i )if( isPrime(i) )std::cout << i << std::endl;return( 0 ); }


What is the difference between short int and long int?

Value range.Tipical v.r. for short int: -2^15 .. 2^15-1Tipical v.r. for int: -2^15 .. 2^15-1 or -2^31 .. 2^31-1Tipical v.r. for long int: -2^31 .. 2^31-1 or -2^63 .. 2^63-1Tipical v.r. for long long int: -2^63 .. 2^63-1Of course all of these are platform-dependent.


How do you write a program in c plus plus read the prime numbers between 1 and 5000?

#include <iostream> bool isPrime(int p) {if( p<=1 ( p>2 && p%2==0 ))return( false );int max = (int)sqrt(( double ) p ) + 1; for( int i=3; i<=max; i+=2 )if( p%i==0 )return( false );return( true ); } int main() {for( int i=1; i<5000; i>2?i+=2:++i )if( isPrime(i) )std::cout << i << std::endl;return( 0 ); }


Code to add 2 integer numbers without using int float and double?

int num1 = 1; int num2 = 50; int addition = num1 + num2;


Programme for sum of two integers using C?

int a = 1; int b = 2; int c = a + b; // Sum


Write a program to divide 2 numbers without using the division operator?

int divide1(int a,int b) { int t=1; while(b*t<=a) { t++; } return t-1; }