Question 1
int* ptr1, ptr2;
Question 2
/* First declaration */
struct node {
int data;
struct node * nextPtr;
};
/* Second declaration */
typedef struct node{
int data;
NODEPTR nextPtr;
} * NODEPTR;
Question 3
/* First declaration */
typedef struct node
{
int data;
struct node *nextPtr;
}* NODEPTR;
/* Second declaration */
struct node
{
int data;
struct node * nextPtr;
};
typedef struct node * NODEPTR;
Question 4
/* First Declaration */
int (*funPtr1)(int), (*funPtr2)(int);
/* Second Declaration*/
typedef int (*funPtr)(int);
funPtr funPtr1, funPtr2;
Question 5
int arr[] = {1,2,3,4,5};
extern int arr[];
Question 6
#include <stdio.h> void wrt_it (void); int main (void) { printf("Enter Text"); printf ("\\n"); wrt_ it(); printf ("\\n"); return 0; } void wrt_it (void) { int c; if (?1) wrt_it(); ?2 }
There are 6 questions to complete.