Questions without a selected answer in Programming and DS

0 votes
1 answer
1
1 votes
1 answer
4
int bar(int val){int x=0;while(val 0){x=x+bar(val -1);}return val;}Q: For bar(3) this function is supposed to be stuck in an infinite loop but I do not know how please c...
1 votes
0 answers
5
My question is that can we use command line arguments without use of main function's parameters argc and *argv?
0 votes
0 answers
6
I have a question that can we use command line arguments without main function arguments?int main(int argc, char argv){}
1 votes
1 answer
8
#include <stdio.h int main() { int i = -1; int x = (unsigned char)i; printf("%d", x); return 0; }output is 255 , but please explain how
0 votes
1 answer
10
How can we find the highest element in a singly linked list in O(1)? We are free to use any extra space.
0 votes
1 answer
11
Find the error of the following IP addresses. If the IP is valid, check its Class and determine whether the address is Unicast or Multicast.i) 237.15.2.1ii) 256.1.8.9iii)...
2 votes
2 answers
18
0 votes
2 answers
23
Consider a binary min-heap containing $105$ distinct elements. Let $k$ be the index (in the underlying array) of the maximum element stored in the heap. The number of pos...
2 votes
1 answer
24
​​Consider the following $\mathrm{C}$ function definition.int f (int x, int y){ for (int i=0 ; i<y ; i++ ) { x= x + x + y; } return x; }Which of the following stateme...
To see more, click for the full list of questions or popular tags.