Search
 
SCRIPT & CODE EXAMPLE
 

C

arrays and pointers

#include<stdio.h>

int main()
{
    int arr[5] = {10, 20, 30, 40, 50}, i;

    for(i = 0; i < 5; i++)
        printf("value stored in arr[%d] = %d
",i,*(arr+i));

    return 0;
}
Comment

Array of pointers to functions

void (*fparr[])(int, float) = {
                              /* initializers */
                      };
/* then call one */

fparr[5](1, 3.4);
Comment

arrays and pointers

#include<stdio.h>

int main()
{
    int arr[5] = {10, 20, 30, 40, 50}, i;

    for(i = 0; i < 5; i++)
        printf("Address of arr[%d] = %p
",i,arr+i);

    return 0;
}
Comment

PREVIOUS NEXT
Code Example
C :: how to write a hello world program in c 
C :: printf("%d", 10 ? 0 ? 5:1:1:12) what will print 
C :: c Write a program to reverse an array or string 
C :: Happy New Year! 
C :: write to console c 
C :: C Create struct Variables 
C :: open cv 
Dart :: how to remove debug tag in flutter 
Dart :: list item bottom border in flutter 
Dart :: asset image in circle avatar flutter 
Dart :: python change type of elements in list 
Dart :: How to Create Number Inputfield in Flutter? 
Dart :: media query width flutter 
Dart :: delete shared preference flutter 
Dart :: how to check whether index is exist or not in dart 
Dart :: dart timer 
Dart :: borderradius.only flutter 
Dart :: int to char dart 
Dart :: how to pop all screens flutter 
Dart :: alertdialog flutter barrierColor 
Dart :: flutter listview space between items 
Dart :: DartPad requires localStorage to be enabled 
Dart :: add dollar sign in flutter 
Dart :: add border color to one side and rounded border container flutter 
Dart :: how to get the last values of a string dart 
Dart :: dart dictionary 
Dart :: dart and flutter 
Dart :: dart pow 
Dart :: how to convert string into date format 
Dart :: best visual studio code extensions for flutter development 
ADD CONTENT
Topic
Content
Source link
Name
9+3 =