C/C++ Function Call Puzzle

sudhir sharma
Updated on 07-Oct-2019 08:14:43

238 Views

This C/C++ function call puzzle is a puzzle that is intended to explore more about the behaviour of method calling in both the programming languages C and C++/.The output of a method in C and C++ is different. Lets see what is the difference in calling methods in C and C++.Let’s take an example and check the output of the below code in c and c++.Example Live Demovoid method() {    // Print statement } int main() {    method();    method(2); }OutputFor C++ −Error : too many arguments to function ‘void method()’For C −Program runs without any error.Logic behind the ... Read More

C++ Boolean Matrix

sudhir sharma
Updated on 07-Oct-2019 08:12:21

1K+ Views

Boolean matrix is a matrix that has only two elements 0 and 1. For this boolean Matrix question, we have a boolean matrix arr[m][n] of size mXn. And the condition to solve is, if m[i][j] = 1 then m[i] = 1 and m[j] = 1 which means all elements of the ith row and jth column will become 1.Let’s take an example, Input: arr[2][2] = 1 0                   0 0 Output: arr[2][2] = 1 1                   1 0Explanation− arr[0][0] = 1 ... Read More

Use JavaScript to Redirect an HTML Page

Rishi Raj
Updated on 07-Oct-2019 08:08:32

2K+ Views

You might have encountered a situation where you clicked a URL to reach a page X but internally you were directed to another page Y. It happens due to page redirection.It is quite simple to do a page redirect using JavaScript on the client side. To redirect your site visitors to a new page, you just need to add a line in your head section as follows.You can try to run the following code to learn how to use JavaScript to redirect an HTML page. Here, we will redirect to the homepageExampleLive Demo             ... Read More

C++ Adam Number

sudhir sharma
Updated on 07-Oct-2019 08:06:37

2K+ Views

Adam Number is a number whose square is reverse of the square of its reverse.Concept Explained − For a number to be adam number, the square of number is reverse of the square of the reverse of the number. Let’s take an example, 12 is the number. Square of 12 is 144 and the reverse of 12 is 21. The square of reverse of 12 i.e. 21 is 441. 441 is the reverse of 144 which is the square of 12.Algorithm to check if a number is adam number −Given the number xy, find the square of the number (xy)2.For ... Read More

Orthogonal Frequency Division Multiplexing (OFDM)

Moumita
Updated on 07-Oct-2019 08:02:17

22K+ Views

In data communications and networking, orthogonal frequency-division multiplexing (OFDM) is a method of digital data modulation, whereby a single stream of data is divided into several separate sub-streams for transmission via multiple channels.OFDM uses the principle of frequency division multiplexing (FDM), where the available bandwidth is divided into a set of sub-streams having separate frequency bands. OFDM was introduced in 1966 by Chang at Bell Labs and was improved by Weinstein and Ebert in 1971.Working Principle of OFDMOFDM is a specialised FDM having the constraint that the sub-streams in which the main signal is divided, are orthogonal to each other. ... Read More

Complementary Code Keying (CCK)

Moumita
Updated on 07-Oct-2019 08:00:13

2K+ Views

Complementary Code Keying (CCK) is a modulation technique deployed in wireless local area networks (WLANs) that follow IEEE 802.11b specification. CCK came into use in 1999 whereby it replaced the Barker code in wireless networks. CCK helps in attaining data rates higher than 2 Mbps, though at the cost of shorter ranges.Features of CCKCCK is used in wireless LANs to attain theoretical maximum data rates of 11 Mbps.CCK is implemented for transmission in the radio frequency range (RF band) of 2.4GHz – 2.4835GHz.CCK includes a pair of codes called chipping sequences which are complementary to each other. In complementary codes, ... Read More

What is Rate Adaptation?

Moumita
Updated on 07-Oct-2019 07:58:53

2K+ Views

Rate adaptation is a criteria that determines the performance of IEEE 802.11 wireless networks, or WiFi. Rate adaptation allows transmission to be done at different rates within the wireless network, depending upon the network conditions.In wireless networks, the signal may be strong or weak. Through rate adaptation technique, the data transfer date can be changed depending upon the signal strength, i.e. when the signal is strong, high data rates are adopted, while low data rates are adopted during weak signals.Rate Adaptation AlgorithmsIn traditional rate adaptation algorithms, the lowest permissible data rate was selected for data transfer. Though this ensured that ... Read More

The 802.11 Physical Layer

Moumita
Updated on 07-Oct-2019 07:57:21

13K+ Views

IEEE 802.11 standard, popularly known as WiFi, lays down the architecture and specifications of wireless LANs (WLANs). WiFi or WLAN uses high frequency radio waves instead of cables for connecting the devices in LAN. Users connected by WLANs can move around within the area of network coverage.IEEE 802.11 ArchitectureThe physical layer architecture of IEEE 802.11 has the following components −Stations (STA) − Stations comprises of all devices and equipment that are connected to the wireless LAN. A station can be of two types −Wireless Access Point (WAP) − WAPs or simply access points (AP) are generally wireless routers that form ... Read More

Basic Minimal Structure of HTML Document

Ali
Ali
Updated on 07-Oct-2019 07:52:39

2K+ Views

HTML document is a web page, which helps you in showing content on the website. It consists of tags, which has an opening as well as closing tags. However, some tags do not come in pairs i.e. they do not have a closing tag. The basic minimal structure also has some tags, which you need to add.doctypeThis is a doctype declaration, which begins the HTML program and gets added as . It is added to tell and instruct the browser about the document.

Most Important Tags for an HTML Document

Amit Sharma
Updated on 07-Oct-2019 07:48:26

2K+ Views

HTML has various tags to format content, heading, align content, add sections, etc to a website. The most important tags for an HTML document is doctype, , and .doctypedoctype is the doctype declaration type. It is used for specifying which version of HTML the document is using.The HTML tag is the container for all other HTML elements except for the tag, which is located before the opening tag. All other HTML elements are nested between the and tags.The HTML tag is used for indicating the head section of the HTML document. Tags included inside ... Read More

Advertisements