C Programming Create a declaration for each of the following
(C Programming) Create a declaration for each of the following:
1.Write a declaration for a variable named ptoi that will hold a pointer to data of type int.
2. Use typedef to declare a type pChar that is a pointer to a character.
3. Write a declaration for a variable cpd which is to be a constant pointer to a double.
Solution
 1.Write a declaration for a variable named ptoi that will hold a pointer to data of type int.
    int *ptoi;
2. Use typedef to declare a type pChar that is a pointer to a character.
    typedef char* pChar;
3. Write a declaration for a variable cpd which is to be a constant pointer to a double.
    double * const cpd;

