employer cover photo
employer logo
employer logo

Schweitzer Engineering Laboratories

Est-ce votre entreprise ?

Question d’entretien chez Schweitzer Engineering Laboratories

Show the type definitions for the following: int, int pointer, pointer to int pointer, const int, const int pointer, pointer to const int, const int pointer to const int pointer, array of constant integers, pointer to array of constant integers

Réponse à la question d'entretien

Utilisateur anonyme

8 avr. 2014

int i; // int int *ptr; // pointer to int int **ptr; // pointer to int pointer const int i; // constant int const int *ptr // const int ptr int * const ptr; // ptr to const int int const * ptr const; // const int ptr to const int ptr const int arr[] = {0,1,3,5,7,....}; // array of constant integers const int(*ptr[10]) (int);