Given a single Linked list with lakhs of nodes and length
unknown how do you optimally delete the nth element from the
list?
first create the list of unknown length..... then get the position of the element to be deleted from the user.... the start travelling in the list.... if it encounters the position prescribed by the user ... get the addresses in the list and shift that to the previous node and free this node........
thank u
| Is This Answer Correct ? | 2 Yes | 1 No |
Explain what are global variables and explain how do you declare them?
whether itis a structured language?
What is an endless loop?
How do you view the path?
Explain union. What are its advantages?
#include<stdio.h> #include<conio.h> void main() { float a; clrscr(); a=0.5; if(a==0.5) printf("yes"); else printf("no"); getch(); }
What are identifiers and keywords in c?
write a program which will count occurance of a day between two dates.
What is structure and union in c?
How does sizeof know array size?
if a is an integer variable, a=5/2; will return a value a) 2.5 b) 3 c) 2 d) 0
What is a static function in c?