Implement a function that returns the 5th element from the
end in a singly linked list of integers in one pass.
Answer Posted / lly
I think both #1 & #2 are wrong. Because the code travels
the list in two passes not one pass.
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
What is static volatile in c?
What is array of structure in c?
Explain what are multidimensional arrays?
C language questions for civil engineering
Explain what are bus errors, memory faults, and core dumps?
Describe the complexity of Binary search, Quicksort and various other sorting and searching techniques..
Why does the call char scanf work?
#include main() { char s[] = "Bouquets and Brickbats"; printf(" %c, ",*(&s[2])); printf("%s, ",s+5); printf(" %s",s); printf(" %c",*(s+2)); }
How do we open a binary file in Read/Write mode in C?
Write a C program that will accept a hexadecimal number as input and then display a menu that will permit any of the following operations to be carried out: Display the hexadecimal equivalent of the one's complement. (b) Carry out a masking operation and then display the hexadecimal equivalent of the result. (c) Carry out a bit shifting operation and then display the hexadecimal equivalent of the result. (d) Exit. If the masking operation is selected, prompt the user lor the type of operation (bitwise and, bitwise exclusive or, or bitwise or) and then a (hexadecimal) value for the mask. If the bit shifting operation is selected. prompt the user for the type of shift (left or right), and then the number of bits. Test the program with several different (hexadecimal) input values of your own choice.
How macro execution is faster than function ?
Is there any data type in c with variable size?
What are formal parameters?
Who invented bcpl language?
Explain do array subscripts always start with zero?