• Register
1 vote

Problem :

Need solution on bellow problem
there are 4 bytes in an ipv4 address. what is the highest decimal value you can have for one byte?
6 5 3
6,930 points

1 Answer

0 votes

Solution :

IPv4 uses 32-bit (four-byte) addresses, so it limits the address space to 4228250626 (232) addresses.

4 bytes means 32 bits so each byte can have 8 bits and maximum value of 8 bits number is 255. 11111111 in binary is equal to 255 in decimal. Therefore, is maximum range of IPv4.

And reason for this limitation may be because at that time not much IPv4 addresses were required so specs were designed this way.

9 7 4
38,600 points

Related questions

0 votes
1 answer 6 views
I'm trying to grasping data types in C. Also, I'm throughly checking a C book and one of the challenges asks what the maximum and minimum number a short can store. Can some one help me to sort out this issue?
asked Sep 14 Daniel Anderson 4k points
0 votes
1 answer 46 views
Problem: I am new, I need help, can anyone help? Using wildcard metacharacters, how can one indicate a number is either 1, 2, 3, or 4? a. 1-4 c. [1234] b. [1-4] d. [1,2,3,4]
asked Feb 21 maddi86 5.4k points
0 votes
1 answer 108 views
Problem : I am trying to print every string in Reverse Double Character way (e.g. string -> ggnniirrttss) import java.util.Scanner; public class ReverseDoubleCharecters { public static void main(String[] args) { Scanner input = new Scanner(System.in); System.out.println("Enter ... I get as follows: ss tt rr ii nn gg All double characters are printed on new lines. Anybody has the solution on this?
asked Nov 22, 2019 peterlaw 6.9k points
0 votes
0 answers 8 views
Problem: Which one of the following would contain the translated Java byte code for a program named Demo? A) Demo.java B) Demo.code C) Demo.class D) Demo.byte
asked Jul 23 conner 1.5k points