Explore topic-wise InterviewSolutions in .

This section includes InterviewSolutions, each offering curated multiple-choice questions to sharpen your knowledge and support exam preparation. Choose a topic below to get started.

1.

List Out Few Of The Application Of Tree Data-structure?

Answer»

2.

What Are The Methods Available In Storing Sequential Files?

Answer»

3.

Sorting Is Not Possible By Using Which Of The Following Methods? (insertion, Selection, Exchange, Deletion)

Answer»

Sorting is not possible in Deletion. Using insertion we can perform insertion sort, using selection we can perform selection sort, using exchange we can perform the BUBBLE sort (and other SIMILAR sorting METHODS). But no sorting METHOD can be done just using deletion.

Sorting is not possible in Deletion. Using insertion we can perform insertion sort, using selection we can perform selection sort, using exchange we can perform the bubble sort (and other similar sorting methods). But no sorting method can be done just using deletion.

4.

What Are The Types Of Collision Resolution Techniques And The Methods Used In Each Of The Type?

Answer»

Open addressing (closed hashing), The methods USED INCLUDE: Overflow block.
Closed addressing (open hashing), The methods used include: LINKED LIST, Binary tree.

Open addressing (closed hashing), The methods used include: Overflow block.
Closed addressing (open hashing), The methods used include: Linked list, Binary tree.

5.

List Out Few Of The Applications That Make Use Of Multilinked Structures?

Answer»

6.

What Is The Type Of The Algorithm Used In Solving The 8 Queens Problem?

Answer»

Backtracking.

Backtracking.

7.

In Tree Construction Which Is The Suitable Efficient Data Structure? (array, Linked List, Stack, Queue)

Answer»

Linked list is the SUITABLE efficient DATA STRUCTURE.

Linked list is the suitable efficient data structure.

8.

Whether Linked List Is Linear Or Non-linear Data Structure?

Answer»

ACCORDING to ACCESS strategies LINKED list is a LINEAR one. 
According to Storage Linked List is a Non-linear one.

According to Access strategies Linked list is a linear one. 
According to Storage Linked List is a Non-linear one.

9.

Which Is The Simplest File Structure? (sequential, Indexed, Random)

Answer»

SEQUENTIAL is the SIMPLEST FILE STRUCTURE.

 

Sequential is the simplest file structure.

 

10.

Does The Minimum Spanning Tree Of A Graph Give The Shortest Distance Between Any 2 Specified Nodes?

Answer»

No. The MINIMAL spanning TREE ASSURES that the total weight of the tree is kept at its MINIMUM. But it doesn't mean that the distance between any two nodes involved in the minimum-spanning tree is minimum.

No. The Minimal spanning tree assures that the total weight of the tree is kept at its minimum. But it doesn't mean that the distance between any two nodes involved in the minimum-spanning tree is minimum.

11.

What Is A Spanning Tree?

Answer»

A spanning TREE is a tree associated with a network. All the nodes of the graph appear on the tree once. A MINIMUM spanning tree is a spanning tree ORGANIZED so that the total EDGE WEIGHT between nodes is minimized.

A spanning tree is a tree associated with a network. All the nodes of the graph appear on the tree once. A minimum spanning tree is a spanning tree organized so that the total edge weight between nodes is minimized.

12.

In Rdbms, What Is The Efficient Data Structure Used In The Internal Storage Representation?

Answer»

B+ tree. Because in B+ tree, all the data is stored only in leaf nodes, that MAKES searching EASIER. This CORRESPONDS to the RECORDS that shall be stored in leaf nodes.

B+ tree. Because in B+ tree, all the data is stored only in leaf nodes, that makes searching easier. This corresponds to the records that shall be stored in leaf nodes.

13.

When Is A Binary Search Algorithm Best Applied?

Answer»

It is BEST applied to search a list when the elements are already in order or sorted.
The list here is searched starting in the middle. If that middle VALUE is not the CORRECT one, the lower or the upper HALF is searched in the similar way.

It is best applied to search a list when the elements are already in order or sorted.
The list here is searched starting in the middle. If that middle value is not the correct one, the lower or the upper half is searched in the similar way.

14.

How Does Dynamic Memory Allocation Help In Managing Data?

Answer»

Aside from being ABLE to store simple structured DATA TYPES, dynamic memory allocation can combine separately allocated structured blocks to form composite STRUCTURES that expand and contract as needed.

Aside from being able to store simple structured data types, dynamic memory allocation can combine separately allocated structured blocks to form composite structures that expand and contract as needed.

15.

What Are The Notations Used In Evaluation Of Arithmetic Expressions Using Prefix And Postfix Forms?

Answer»

POLISH and REVERSE Polish NOTATIONS.

Polish and Reverse Polish notations.

16.

Differentiate Between Push And Pop?

Answer»

Pushing and popping REFERS to the WAY data is stored into and RETRIEVED from a stack.
PUSH – Data being pushed/ ADDED to the stack.
POP - Data being retrieved from the stack, particularly the TOPMOST data.

Pushing and popping refers to the way data is stored into and retrieved from a stack.
PUSH – Data being pushed/ added to the stack.
POP - Data being retrieved from the stack, particularly the topmost data.

17.

Are Linked Lists Considered Linear Or Non-linear Data Structure?

Answer»

It ACTUALLY depends on where you intend to apply linked lists. If you BASED it on storage, a linked LIST is considered non-linear. On the other HAND, if you based it on ACCESS strategies, then a linked list is considered linear.

It actually depends on where you intend to apply linked lists. If you based it on storage, a linked list is considered non-linear. On the other hand, if you based it on access strategies, then a linked list is considered linear.

18.

Minimum Number Of Queues Needed To Implement The Priority Queue?

Answer»

TWO. ONE QUEUE is USED for actual storing of data and ANOTHER for storing priorities.

Two. One queue is used for actual storing of data and another for storing priorities.

19.

What Are Multidimensional Arrays?

Answer»

MULTIDIMENSIONAL arrays make USE of multiple indexes to store DATA. It is USEFUL when storing data that cannot be represented using a single dimensional indexing, such as data representation in a board game, tables with data stored in more than one column.

Multidimensional arrays make use of multiple indexes to store data. It is useful when storing data that cannot be represented using a single dimensional indexing, such as data representation in a board game, tables with data stored in more than one column.

20.

If You Are Using C Language To Implement The Heterogeneous Linked List, What Pointer Type Will You Use?

Answer»

The heterogeneous LINKED list contains different DATA types in its nodes and we need a link, pointer to connect them. It is not POSSIBLE to use ordinary pointers for this. So we GO for VOID pointer. Void pointer is capable of storing pointer to any type as it is a generic pointer type.

The heterogeneous linked list contains different data types in its nodes and we need a link, pointer to connect them. It is not possible to use ordinary pointers for this. So we go for void pointer. Void pointer is capable of storing pointer to any type as it is a generic pointer type.

21.

What Is A Queue?

Answer»

A queue is a collection of data that follows the FIFO (First in First Out) principle. It is a type of a linear data structure. Elements in a queue are removed only from the front, while new elements are added only at the back of a queue. IMAGINE a queue of people in front of MOVIE theater for tickets. People can’t skip to the front for tickets – they have to join the back of the queue. People leave the queue only after they get their tickets, from the front. This is a great example of a queue in data structures. The two operations PERFORMED on a queue are enqueue (adding data elements) and dequeue(REMOVING data elements).
A priority queue is a queue in which EVERY element in the queue is assigned a priority and operations are performed on it according to this priority.

A queue is a collection of data that follows the FIFO (First in First Out) principle. It is a type of a linear data structure. Elements in a queue are removed only from the front, while new elements are added only at the back of a queue. Imagine a queue of people in front of movie theater for tickets. People can’t skip to the front for tickets – they have to join the back of the queue. People leave the queue only after they get their tickets, from the front. This is a great example of a queue in data structures. The two operations performed on a queue are enqueue (adding data elements) and dequeue(removing data elements).
A priority queue is a queue in which every element in the queue is assigned a priority and operations are performed on it according to this priority.

22.

Does The Minimal Spanning Tree Of A Graph Give The Shortest Distance Between Any 2 Specified Nodes?

Answer»

No, it doesn’t.It ASSURES that the TOTAL WEIGHT of the tree is KEPT to MINIMUM.It doesn't imply that the distance between any two nodes involved in the minimum-spanning tree is minimum.

No, it doesn’t.It assures that the total weight of the tree is kept to minimum.It doesn't imply that the distance between any two nodes involved in the minimum-spanning tree is minimum.

23.

What Is Lifo?

Answer»

LIFO is short for Last In First Out, and refers to how DATA is accessed, stored and RETRIEVED. USING this scheme, data that was stored last , should be the one to be extracted first. This also means that in order to gain access to the first data, all the other data that was stored before this first data must first be retrieved and extracted.

LIFO is short for Last In First Out, and refers to how data is accessed, stored and retrieved. Using this scheme, data that was stored last , should be the one to be extracted first. This also means that in order to gain access to the first data, all the other data that was stored before this first data must first be retrieved and extracted.

24.

What Are The Major Data Structures Used In The Following Areas ?

Answer»

 RDBMS, Network data model and HIERARCHICAL data model.

  • RDBMS = ARRAY (i.e. Array of structures)
  • Network data model = GRAPH
  • Hierarchical data model = Trees

 RDBMS, Network data model and Hierarchical data model.

25.

What Is A Linked List?

Answer»

A linked list is a set of LINEAR elements where each element has an INDEX or a pointer that INDICATES the next element. An element of a linked list is referred to as a node. A node will store data as well as a pointer/index about the next node in the set. There are different types of linked lists. For example, a circular linked list is a list where the last element of the list points to the first element of the list, forming an unbroken chain of data. A double linked list is a list in which every node stores the index of the node on either SIDE of it.

A linked list is a set of linear elements where each element has an index or a pointer that indicates the next element. An element of a linked list is referred to as a node. A node will store data as well as a pointer/index about the next node in the set. There are different types of linked lists. For example, a circular linked list is a list where the last element of the list points to the first element of the list, forming an unbroken chain of data. A double linked list is a list in which every node stores the index of the node on either side of it.

26.

Which Data Structure Is Used To Perform Recursion?

Answer»
  • The DATA structure used for recursion is Stack.
  • Its LIFO PROPERTY helps it remembers its 'caller'. This helps it know the data which is to be RETURNED when the function has to RETURN.
  • System stack is used for storing the return ADDRESSES of the function calls.

27.

Differentiate File Structure From Storage Structure.

Answer»

Basically, the key difference is the memory area that is being ACCESSED. When dealing with the structure that RESIDES the MAIN memory of the computer system, this is REFERRED to as storage structure. When dealing with an AUXILIARY structure, we refer to it as file structure.

 

Basically, the key difference is the memory area that is being accessed. When dealing with the structure that resides the main memory of the computer system, this is referred to as storage structure. When dealing with an auxiliary structure, we refer to it as file structure.

 

28.

List Out The Areas In Which Data Structures Are Applied Extensively?

Answer»

29.

Explain The Types Of Data Structures

Answer»

There are two basic types of data structures:

  • linear.
  • nonlinear. 

Linear data structures : Linear data structures are organized in a way similar to the way computer memory is organized. Linear data structures STORE elements one after the other, in a linear fashion. Only one element of the data can be traversed at a time. IMAGINE a stack of books placed on a shelf. A book will be placed between two other books, but not three books- a book will only have a RELATIONSHIP to two other books at the most at one time. Linear data elements are stored in a similar way.
Non linear data structures : Non linear data structures are stored in a SEQUENTIAL way. The data elements in the non linear data structures may have RELATIONSHIPS with one or more elements at the same time. Manipulating non linear data structures is more difficult than manipulating linear data structures.

There are two basic types of data structures:

Linear data structures : Linear data structures are organized in a way similar to the way computer memory is organized. Linear data structures store elements one after the other, in a linear fashion. Only one element of the data can be traversed at a time. Imagine a stack of books placed on a shelf. A book will be placed between two other books, but not three books- a book will only have a relationship to two other books at the most at one time. Linear data elements are stored in a similar way.
Non linear data structures : Non linear data structures are stored in a sequential way. The data elements in the non linear data structures may have relationships with one or more elements at the same time. Manipulating non linear data structures is more difficult than manipulating linear data structures.

30.

What Is Data Structure?

Answer»
  • Data structure is a group of data ELEMENTS grouped together under one NAME.
  • These data elements are CALLED members. They can have different TYPES and different lengths.
  • Some of them STORE the data of same type while others store different types of data.

31.

What Are Variables And It What Way Is It Different From Constants?

Answer»

Variables and constants may at first look SIMILAR in a sense that both are identifiers made up of one character or more characters (letters, numbers and a few allowable symbols). Both will also hold a particular value. Values held by a variable can be altered throughout the program, and can be used in most OPERATIONS and computations. Constants are GIVEN values at one time only, placed at the BEGINNING of a program. This value is not altered in the program. For example, you can assigned a constant NAMED PI and give it a value 3.1415 . You can then use it as PI in the program, instead of having to write 3.1415 each time you need it. 

Variables and constants may at first look similar in a sense that both are identifiers made up of one character or more characters (letters, numbers and a few allowable symbols). Both will also hold a particular value. Values held by a variable can be altered throughout the program, and can be used in most operations and computations. Constants are given values at one time only, placed at the beginning of a program. This value is not altered in the program. For example, you can assigned a constant named PI and give it a value 3.1415 . You can then use it as PI in the program, instead of having to write 3.1415 each time you need it. 

32.

What Is Syntax Error?

Answer»

SYNTAX errors are associated with mistakes in the use of a programming language. It maybe a command that was misspelled or a command that must was entered in lowercase mode but was instead entered with an upper case CHARACTER. A misplaced symbol, or lack of symbol, somewhere WITHIN a line of code can also LEAD to syntax ERROR.

Syntax errors are associated with mistakes in the use of a programming language. It maybe a command that was misspelled or a command that must was entered in lowercase mode but was instead entered with an upper case character. A misplaced symbol, or lack of symbol, somewhere within a line of code can also lead to syntax error.

33.

What Are Header Files And What Are Its Uses In C Programming?

Answer»

Header files are also known as library files. They contain two essential things: the DEFINITIONS and prototypes of FUNCTIONS being used in a program. Simply PUT, commands that you use in C programming are actually functions that are DEFINED from within each header files. Each header file contains a set of functions. For example: stdio.h is a header file that contains definition and prototypes of commands like printf and scanf. 

Header files are also known as library files. They contain two essential things: the definitions and prototypes of functions being used in a program. Simply put, commands that you use in C programming are actually functions that are defined from within each header files. Each header file contains a set of functions. For example: stdio.h is a header file that contains definition and prototypes of commands like printf and scanf. 

34.

Can The Curly Brackets { } Be Used To Enclose A Single Line Of Code?

Answer»

While CURLY brackets are mainly used to group several lines of CODES, it will still work without error if you used it for a single line. Some programmers prefer this method as a way of organizing codes to make it look clearer, especially in conditional STATEMENTS.

While curly brackets are mainly used to group several lines of codes, it will still work without error if you used it for a single line. Some programmers prefer this method as a way of organizing codes to make it look clearer, especially in conditional statements.

35.

How Do You Declare A Variable That Will Hold String Values?

Answer»

The char keyword can only hold 1 character value at a time. By creating an ARRAY of characters, you can store string values in it. EXAMPLE: “char MYNAME[50]; ” declares a string variable named MyName that can hold a maximum of 50 characters.

The char keyword can only hold 1 character value at a time. By creating an array of characters, you can store string values in it. Example: “char MyName[50]; ” declares a string variable named MyName that can hold a maximum of 50 characters.

36.

Compare And Contrast Compilers From Interpreters.

Answer»

Compilers and interpreters often deal with how program codes are executed. Interpreters execute program codes ONE line at a time, while compilers take the program as a WHOLE and convert it into object code, before executing it. The key DIFFERENCE here is that in the CASE of interpreters, a program may encounter syntax errors in the middle of execution, and will stop from there. On the other HAND, compilers check the syntax of the entire program and will only proceed to execution when no syntax errors are found.

Compilers and interpreters often deal with how program codes are executed. Interpreters execute program codes one line at a time, while compilers take the program as a whole and convert it into object code, before executing it. The key difference here is that in the case of interpreters, a program may encounter syntax errors in the middle of execution, and will stop from there. On the other hand, compilers check the syntax of the entire program and will only proceed to execution when no syntax errors are found.

37.

What Is A Nested Loop?

Answer»

A NESTED LOOP is a loop that runs within another loop. Put it in another SENSE, you have an inner loop that is inside an OUTER loop. In this scenario, the inner loop is performed a NUMBER of times as specified by the outer loop. For each turn on the outer loop, the inner loop is first performed.

 

A nested loop is a loop that runs within another loop. Put it in another sense, you have an inner loop that is inside an outer loop. In this scenario, the inner loop is performed a number of times as specified by the outer loop. For each turn on the outer loop, the inner loop is first performed.

 

38.

What Is The Modulus Operator?

Answer»

The modulus OPERATOR outputs the remainder of a DIVISION. It MAKES use of the percentage (%) symbol. For example: 10 % 3 = 1, MEANING when you divide 10 by 3, the remainder is 1.

The modulus operator outputs the remainder of a division. It makes use of the percentage (%) symbol. For example: 10 % 3 = 1, meaning when you divide 10 by 3, the remainder is 1.

39.

What Is The Difference Between The = Symbol And == Symbol?

Answer»

The = symbol is often used in mathematical OPERATIONS. It is used to assign a value to a GIVEN variable. On the other hand, the == symbol, also KNOWN as “equal to” or “equivalent to”, is a relational OPERATOR that is used to compare two values.

The = symbol is often used in mathematical operations. It is used to assign a value to a given variable. On the other hand, the == symbol, also known as “equal to” or “equivalent to”, is a relational operator that is used to compare two values.

40.

What Is The Use Of A ‘’ Character?

Answer»

It is REFERRED to as a TERMINATING null character, and is used primarily to SHOW the END of a string value.

It is referred to as a terminating null character, and is used primarily to show the end of a string value.

41.

In C Programming, How Do You Insert Quote Characters (‘ And “) Into The Output Screen?

Answer»

This is a common problem for beginners because quotes are normally part of a printf statement. To insert the QUOTE character as part of the OUTPUT, use the FORMAT SPECIFIERS ’ (for SINGLE quote), and ” (for double quote).

This is a common problem for beginners because quotes are normally part of a printf statement. To insert the quote character as part of the output, use the format specifiers ’ (for single quote), and ” (for double quote).

42.

Differentiate Source Codes From Object Codes

Answer»

SOURCE codes are codes that were written by the programmer. It is made up of the commands and other English-like keywords that are SUPPOSED to instruct the computer what to do. However, computers would not be able to understand source codes. Therefore, source codes are compiled using a compiler. The resulting outputs are OBJECT codes, which are in a format that can be understood by the computer processor. In C programming, source codes are SAVED with the FILE extension .C, while object codes are saved with the file extension .OBJ

Source codes are codes that were written by the programmer. It is made up of the commands and other English-like keywords that are supposed to instruct the computer what to do. However, computers would not be able to understand source codes. Therefore, source codes are compiled using a compiler. The resulting outputs are object codes, which are in a format that can be understood by the computer processor. In C programming, source codes are saved with the file extension .C, while object codes are saved with the file extension .OBJ

43.

What Is Spaghetti Programming?

Answer»

Spaghetti programming refers to CODES that tend to get TANGLED and overlapped throughout the PROGRAM. This unstructured approach to coding is usually attributed to lack of EXPERIENCE on the part of the programmer. Spaghetti programing makes a program complex and analyzing the codes difficult, and so must be AVOIDED as much as possible.

Spaghetti programming refers to codes that tend to get tangled and overlapped throughout the program. This unstructured approach to coding is usually attributed to lack of experience on the part of the programmer. Spaghetti programing makes a program complex and analyzing the codes difficult, and so must be avoided as much as possible.

44.

What Is Variable Initialization And Why Is It Important?

Answer»

This refers to the process wherein a variable is ASSIGNED an initial value before it is USED in the program. WITHOUT initialization, a variable would have an unknown value, which can lead to unpredictable outputs when used in COMPUTATIONS or other operations.

 

This refers to the process wherein a variable is assigned an initial value before it is used in the program. Without initialization, a variable would have an unknown value, which can lead to unpredictable outputs when used in computations or other operations.

 

45.

What Is A Sequential Access File?

Answer»

When writing programs that will store and RETRIEVE data in a file, it is POSSIBLE to designate that file into different forms. A sequential access file is such that data are SAVED in sequential order: one data is PLACED into the file after another. To access a particular data within the sequential access file, data has to be read one data at a time, until the RIGHT one is reached.

When writing programs that will store and retrieve data in a file, it is possible to designate that file into different forms. A sequential access file is such that data are saved in sequential order: one data is placed into the file after another. To access a particular data within the sequential access file, data has to be read one data at a time, until the right one is reached.

46.

What Is A Stack?

Answer»

A stack is one form of a data STRUCTURE. Data is stored in stacks using the FILO (First In LAST Out) approach. At any particular instance, only the top of the stack is accessible, which means that in ORDER to retrieve data that is stored INSIDE the stack, those on the UPPER part should be extracted first. Storing data in a stack is also referred to as a PUSH, while data retrieval is referred to as a POP.

A stack is one form of a data structure. Data is stored in stacks using the FILO (First In Last Out) approach. At any particular instance, only the top of the stack is accessible, which means that in order to retrieve data that is stored inside the stack, those on the upper part should be extracted first. Storing data in a stack is also referred to as a PUSH, while data retrieval is referred to as a POP.

47.

Some Coders Debug Their Programs By Placing Comment Symbols On Some Codes Instead Of Deleting It. How Does This Aid In Debugging?

Answer»

Placing comment symbols /* */ AROUND a code, also REFERRED to as “commenting out”, is a way of isolating some codes that you think maybe CAUSING errors in the program, without deleting the code. The idea is that if the code is in FACT correct, you simply remove the comment symbols and continue on. It also saves you time and effort on having to retype the codes if you have deleted it in the first place.

 

Placing comment symbols /* */ around a code, also referred to as “commenting out”, is a way of isolating some codes that you think maybe causing errors in the program, without deleting the code. The idea is that if the code is in fact correct, you simply remove the comment symbols and continue on. It also saves you time and effort on having to retype the codes if you have deleted it in the first place.

 

48.

What Is The Difference Between Call By Value And Call By Reference?

Answer»

When using Call by VALUE, you are SENDING the value of a variable as parameter to a function, whereas Call by Reference sends the address of the variable. Also, under Call by Value, the value in the parameter is not affected by whatever operation that takes PLACE, while in the CASE of Call by Reference, VALUES can be affected by the process within the function.

When using Call by Value, you are sending the value of a variable as parameter to a function, whereas Call by Reference sends the address of the variable. Also, under Call by Value, the value in the parameter is not affected by whatever operation that takes place, while in the case of Call by Reference, values can be affected by the process within the function.

49.

How Do You Construct An Increment Statement Or Decrement Statement In C?

Answer»

There are actually TWO WAYS you can do this. One is to use the increment operator ++ and decrement operator –. For example, the statement “x++” means to increment the value of x by 1. Likewise, the statement “x –” means to decrement the value of x by 1. ANOTHER way of writing increment statements is to use the conventional + plus sign or – minus sign. In the case of “x++”, another way to write it is “x = x +1”.

There are actually two ways you can do this. One is to use the increment operator ++ and decrement operator –. For example, the statement “x++” means to increment the value of x by 1. Likewise, the statement “x –” means to decrement the value of x by 1. Another way of writing increment statements is to use the conventional + plus sign or – minus sign. In the case of “x++”, another way to write it is “x = x +1”.

50.

What Do You Mean By Dynamic Memory Allocation? Give An Example.

Answer»

The process of allocating memory at the time of execution is called dynamic memory allocation. The allocation and release of this memory space can be done with the help of some built in functions whose prototypes are FOUND in alloc.h and stdlib.h.
Example:-
#include<stdio.h>
#include<alloc.h>
main()
{
int *p, N, i;
printf( “Enter the number of integers to be entered.”);
scanf(“%d”, &n);
p=(int *)malloc(n*sizeof(int));
if(p==NULL)
{
printf(“Memory not AVAILABLE”);
EXIT(1);
}
for(i=0;i<n;i++)
{
printf(“Enter an integer”);
scanf(“%d”, p+1);
}
for(i=0;i<n;i++)
printf(“%d”, *(p+i));
}
RETURN 0;
}

 

The process of allocating memory at the time of execution is called dynamic memory allocation. The allocation and release of this memory space can be done with the help of some built in functions whose prototypes are found in alloc.h and stdlib.h.
Example:-
#include<stdio.h>
#include<alloc.h>
main()
{
int *p, n, i;
printf( “Enter the number of integers to be entered.”);
scanf(“%d”, &n);
p=(int *)malloc(n*sizeof(int));
if(p==NULL)
{
printf(“Memory not available”);
exit(1);
}
for(i=0;i<n;i++)
{
printf(“Enter an integer”);
scanf(“%d”, p+1);
}
for(i=0;i<n;i++)
printf(“%d”, *(p+i));
}
return 0;
}