Hot questions in Programming in C

2 votes
1 answer
61
#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
1 votes
1 answer
66
Does C support fractional Indices?float x = some fraction;Is float a[x] valid declaration?
0 votes
0 answers
68
 I have a question that can we use command line arguments without main function arguments?int main(int argc, char argv){}
0 votes
1 answer
69
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)...
13 votes
8 answers
73
If n has 3, then the statement a[++n]=n++;assigns 3 to a[5]assigns 4 to a[5]assigns 4 to a[4]what is assigned is compiler dependent
0 votes
1 answer
75
How can we find the highest element in a singly linked list in O(1)? We are free to use any extra space.
52 votes
3 answers
78
The most appropriate matching for the following pairs$$\begin{array}{|ll|ll|}\hline X: & \text{m = malloc(5); m = NULL;} & 1: & \text{using dangling pointers} \\\hline Y...
1 votes
1 answer
79
In what cases does an uninitialized array have values = 0 and for which cases does it have values = garbage values. How to differentiate?