Article Categories
- All Categories
-
Data Structure
-
Networking
-
RDBMS
-
Operating System
-
Java
-
MS Excel
-
iOS
-
HTML
-
CSS
-
Android
-
Python
-
C Programming
-
C++
-
C#
-
MongoDB
-
MySQL
-
Javascript
-
PHP
-
Economics & Finance
Articles on Trending Technologies
Technical articles with clear explanations and examples
Differentiate between int main and int main(void) function in C
In C programming, there is a subtle but important difference between int main() and int main(void). Both declare the main function to return an integer, but they differ in how they handle function parameters. Syntax int main() { // Function body return 0; } int main(void) { // Function body return 0; } The int main() Function The int main() function with empty parentheses indicates that the function can accept any number of arguments. In C, when ...
Read MoreHow to create a navigation bar with equal-width navigation links with CSS?
Creating a navigation bar with equal-width navigation links ensures that each menu item takes up the same amount of space, providing a balanced and professional appearance. This can be achieved using CSS properties like width with viewport units or flexbox. Syntax /* Method 1: Using viewport width */ .nav-link { width: calc(100% / number-of-links); } /* Method 2: Using flexbox */ .nav-container { display: flex; } .nav-link { flex: 1; } Method 1: Using Viewport Width The following example creates a ...
Read MoreSacrificing Ratio
Sacrificing ratio is a fundamental concept in partnership accounting that determines how existing partners adjust their profit-sharing arrangements when changes occur in the partnership structure. It represents the proportion of profit share that existing partners give up to accommodate new partners or redistribute among themselves when a partner leaves the firm. Formula The sacrificing ratio is calculated using the following formula: $$\mathrm{Sacrificing\ Ratio = Old\ Profit\ Sharing\ Ratio - New\ Profit\ Sharing\ Ratio}$$ Where: Old Profit Sharing Ratio − The original profit-sharing arrangement before any change in partnership ...
Read MoreWhat are string searching functions in C language?
String searching functions in C are built-in library functions that help locate specific characters, substrings, or patterns within strings. These functions are part of the standard C library (string.h) and provide efficient ways to search and analyze string content. Syntax #include char *strchr(const char *str, int c); char *strrchr(const char *str, int c); char *strpbrk(const char *s1, const char *s2); size_t strspn(const char *s1, const char *s2); size_t strcspn(const char *s1, const char *s2); char *strtok(char *s1, const char *s2); char *strtok_r(char *s1, const char *s2, char **saveptr); String Searching Functions Overview ...
Read MoreHow to create a navigation bar with a centred link/logo with CSS?
Creating a navigation bar with a centered link or logo is a common web design pattern. This can be achieved using CSS positioning techniques to place navigation items on the left, center, and right sides of the navigation bar. Syntax nav { position: fixed; top: 0; width: 100%; } .center-links { display: inline-block; margin-left: 50%; transform: translateX(-50%); } Example The following example creates a fixed navigation bar with links ...
Read MoreWhat are memory operations in C language?
Memory operations in C are functions that manipulate raw bytes in memory, regardless of data type. These functions are declared in #include and work with void* pointers to handle any data type. Syntax The five primary memory functions have the following prototypes − void *memchr(const void *s, int c, size_t n); int memcmp(const void *s1, const void *s2, size_t n); void *memcpy(void *dest, const void *src, size_t n); void *memmove(void *dest, const void *src, size_t n); void *memset(void *s, int c, size_t n); Memory Functions Overview ...
Read MoreRural Credit
Rural credit refers to the financial assistance provided to farmers, agricultural workers, and small business owners in rural areas to support their farming activities and livelihood needs. It plays a crucial role in India's agricultural economy by enabling farmers to purchase seeds, fertilizers, equipment, and meet their financial requirements during the crop cycle. Sources of Rural Credit There are five major formal sources from which farmers can obtain rural credit at reasonable interest rates: Land Development Banks Land development banks provide long-term agricultural loans with land as collateral. These loans have a repayment tenure of 15 to ...
Read MoreHow to create a navigation bar with left-aligned and right-aligned links with CSS?
To create a navigation bar with left-aligned and right-aligned links with CSS, you should have a basic understanding of CSS flexbox. First, we will create the structure of navigation bar having five links using HTML, then we will use CSS to design the navigation bar and align the links on the left and right sides using flexbox properties. Syntax nav { display: flex; justify-content: space-between; } .left-links { flex: 1; } .right-links { display: flex; } Method ...
Read MoreC program to store inventory system using structures
In C programming, an inventory management system can be efficiently implemented using structures to store and organize product information. Structures allow us to group related data of different types under a single entity, making it perfect for managing inventory details like item names, codes, quantities, prices, and manufacturing dates. Syntax struct structure_name { datatype member1; datatype member2; /* more members */ }; Features of Structures The key features of structures in C programming are − Enables grouping of different data ...
Read MoreRules of Debit and Credit
Debit and credit are the fundamental principles of double-entry bookkeeping that ensure every business transaction is accurately recorded. These rules form the backbone of accounting, requiring that for every transaction, the total debits must equal the total credits, maintaining the accounting equation's balance. The Golden Rules of Debit and Credit All accounting transactions follow three fundamental golden rules: Real Accounts (Assets): − Debit what comes in, credit what goes out Personal Accounts (Debtors/Creditors): − Debit the receiver, credit the giver Nominal Accounts (Income/Expenses): − Debit all expenses and losses, credit all incomes and gains ...
Read More