plz send me all data structure related programs
Answers were Sorted based on User's Feedback
To start with data structures, Linked lists comes 1st.
Hands on experience with the following questions will give
good confidence to a programmer.
1. Creating a list (Single linked list or double linked
list)
a. add node to front of the list
b. add node to end of the list
c. add node to middle of the list
d. Delete first node
e. Delete last node
f. Delete middle node
2. Identifying Loop or circle in a single linked list
3. Reversing a linked list(single and double)
4. finding middle node of a list
5. All the above programs can be extended to develop a
generic linked list even.
In the above programs stacks and queues concepts are
covered. To develop Stack LIFO concept is followed.
To develop Queue FIFO concept is followed.
| Is This Answer Correct ? | 1 Yes | 0 No |
Answer / papa_structure
stacks, queues, linklist, trees, graphs and
sorting.....leave these topics and rest all are data
structures..................................................
............................................................
............................................................
............................................................
...........
dumbo!!!!!!!!!!!!think b4ore u ask.........
| Is This Answer Correct ? | 0 Yes | 0 No |
given integer number,write a program that displays the number as follows: First line :all digits second line : all except the first digit . . . . Last line : the last digit
char *someFun1() { char temp[ ] = “string"; return temp; } char *someFun2() { char temp[ ] = {‘s’, ‘t’,’r’,’i’,’n’,’g’}; return temp; } int main() { puts(someFun1()); puts(someFun2()); }
main() { unsigned char i=0; for(;i>=0;i++) ; printf("%d\n",i); }
how to return a multiple value from a function?
What is the problem with the following code segment? while ((fgets(receiving array,50,file_ptr)) != EOF) ;
3) Int Matrix of certain size was given, We had few valu= es in it like this. =97=97=97=97=97=97=97=97=97=97=97 1 = | 4 | | 5 | &= nbsp; | 45 =97=97=97=97=97=97=97=97=97=97=97 &n= bsp; | 3 | 3 | 5 | = | 4 =97=97=97=97=97=97=97=97=97=97=97 34 |&nbs= p; 3 | 3 | | 12 | &= nbsp; =97=97=97=97=97=97=97=97=97=97=97 3 | &nbs= p; | 3 | 4 | = | 3 =97=97=97=97=97=97=97=97=97=97=97 3 | = ; | | | = ; 3 | =97=97=97=97=97=97=97=97=97=97=97 &= nbsp; | | 4 | = ; | 4 | 3 We w= ere supposed to move back all the spaces in it at the end. Note: = If implemented this prog using recursion, would get higher preference.
Write a C program to print ‘Campus Force training’ without using even a single semicolon in the program.
main() { int (*functable[2])(char *format, ...) ={printf, scanf}; int i = 100; (*functable[0])("%d", i); (*functable[1])("%d", i); (*functable[1])("%d", i); (*functable[0])("%d", &i); } a. 100, Runtime error. b. 100, Random number, Random number, Random number. c. Compile error d. 100, Random number
Write a C program that defines a 2-dimentional integer array called A [50][50]. Then the elements of this array should randomly be initialized either to 1 or 0. The program should then print out all the elements in the diagonal (i.e. a[0][0], a[1][1],a[2][2], a[3][3], ……..a[49][49]). Finally, print out how many zeros and ones in the diagonal.
To reverse an entire text file into another text file.... get d file names in cmd line
Code for 1>"ascii to string" 2>"string to ascii"
1 Answers Aricent, Global Logic,
why java is platform independent?