Search
 
SCRIPT & CODE EXAMPLE
 

C

c 2d array dimensions

int array[2][5];
int rows;
int cols;
cols = sizeof(array[0]) / sizeof(int);
rows = (sizeof(array) / sizeof(int))/cols;
printf("rows: %d
",rows);
printf("cols: %d",cols);
Comment

PREVIOUS NEXT
Code Example
C :: get current used proxy windows 7 
C :: C how to find substring in string 
C :: c Program for Sum of the digits of a given number 
C :: silicon valley 
C :: c round function 
C :: c bit access struct 
C :: c float to string 
C :: printf type format 
C :: c argv 
C :: get range of values in mongodb 
C :: typedef pointer 
C :: fopen function in c 
C :: typedef in c 
C :: Access denied creating xampp-control.ini 
C :: C Program to Find Largest and Smallest Number among N 
C :: ruby find object in array by attribute 
C :: enable disable audio listener unity 
C :: Fibonacci Series Program. in c 
C :: getting string input in c 
C :: c language string 
C :: concatenate two strings without standard library in C 
C :: how to allocate memory for pointer in c 
C :: c program for swapping of two numbers 
C :: how to transform a char to ascii code in c 
C :: how to free memory in c 
C :: sqrt function in c 
C :: ternary operator in c 
C :: get docker 
C :: example of source file 
C :: Print mark-sheet of students 
ADD CONTENT
Topic
Content
Source link
Name
8+3 =