Implement a function that returns the 5th element from the
end in a singly linked list of integers in one pass.
Answers were Sorted based on User's Feedback
Answer / vrushali
In whatever the case , we require to know the no of nodes in
the LL. As there is no way to know the total no of nodes
without traversing the LL.
Please coorect me if I am wrong.
| Is This Answer Correct ? | 0 Yes | 2 No |
main() { int arr[5]={23,67}; printf("%d%d%d",arr[2],arr[3],arr[4]); }
Write a simple program to find the size of different basic data types in C.
Are enumerations really portable?
What is c variable?
What are static variables in c?
What are the rules for the identifier?
Why is the code below functioning. According to me it MUST NOT.
what is the value of 'i'? i=strlen("Blue")+strlen("People")/strlen("Red")-strlen("green")
7 Answers Cadence, JNTU, Zen Technologies,
24.what is a void pointer? 25.why arithmetic operation can’t be performed on a void pointer? 26.differentiate between const char *a; char *const a; and char const *a; 27.compare array with pointer? 28.what is a NULL pointer? 29.what does ‘segmentation violation’ mean? 30.what does ‘Bus Error’ mean? 31.Define function pointers? 32.How do you initialize function pointers? Give an example? 33.where can function pointers be used?
What are the Advantages of using macro
What is C language ?
What is logical error?