-
vincelet started the topic What is string in c in the forum C Programming 6 months, 1 week ago
In C programming, a string is a sequence of characters terminated with a null character . For example: char c[] = “c string”; When the compiler encounters a sequence of characters enclosed in the double quotation marks, it appends a null character at the end by default. Memory Diagram.
-
vincelet started the topic What is void in the forum C Programming 6 months, 1 week ago
void main() A void keyword is used to reference an empty data type. We can use the void keyword as the return type of the main function in c to depict that the function is not returning any value.
-
vincelet started the topic What is array in the forum C Programming 6 months, 1 week ago
Array in C can be defined as a method of clubbing multiple entities of similar type into a larger group. These entities or elements can be of int, float, char, or double data type or can be of user-defined data types too like structures
-
vincelet started the topic Four types of c functions in the forum C Programming 6 months, 1 week ago
Functions without arguments and without return values.Functions without arguments and with return values.Functions with arguments and without return values.Functions with arguments and with return values.
-
vincelet started the topic Four types of c functions in the forum C Programming 6 months, 1 week ago
Functions without arguments and without return values.Functions without arguments and with return values.Functions with arguments and without return values.Functions with arguments and with return values.
-
vincelet started the topic Function in c in the forum C Programming 6 months, 1 week ago
A function is a block of code which only runs when it is called. You can pass data, known as parameters, into a function. Functions are used to perform certain actions, and they are important for reusing code: Define the code once, and use it many times
-
vincelet started the topic Function in c++ in the forum C++ 6 months, 1 week ago
A function definition provides the actual body of the function. The C++ standard library provides numerous built-in functions that your program can call. For example, function strcat() to concatenate two strings, function memcpy() to copy one memory location to another location and many more functions.
-
vincelet wrote a new item 6 months, 1 week ago
Inheritence
-
vincelet started the topic Inheritence property in c++ in the forum C++ 6 months, 1 week ago
Inheritance is a mechanism in which one class acquires the property of another class. For example, a child inherits the traits of his/her parents. With inheritance, we can reuse the fields and methods of the existing class. Hence, inheritance facilitates Reusability and is an important concept of OOPs.
-
vincelet started the topic Variable in c++ in the forum C++ 6 months, 1 week ago
Variables are containers for storing data values. In C++, there are different types of variables (defined with different keywords), for example: int – stores integers (whole numbers), without decimals, such as 123 or -123. double – stores floating point numbers, with decimals, such as 19.99 or -19.99.
-
vincelet started the topic String in c++ in the forum C++ 6 months, 1 week ago
One of the most useful data types supplied in the C++ libraries is the string. A string is a variable that stores a sequence of letters or other characters, such as “Hello” or “May 10th is my birthday!”. Just like the other data types, to create a string we first declare it, then we can store a value in it.
-
vincelet replied to the topic Pointers in c++ in the forum C++ 6 months, 1 week ago
#include <iostream> using namespace std; int main() { int *ptr; // integer pointer declaration int marks[10]; // marks array declaration std::cout << “Enter the elements of an array :” << std::endl; for(int i=0;i<10;i++) { cin>>marks[i]; } ptr=marks; // both marks and ptr pointing to the same element.…[Read more]
-
vincelet started the topic Pointers in c++ in the forum C++ 6 months, 1 week ago
pointer is a variable that stores the memory address of an object. Pointers are used extensively in both C and C++ for three main purposes: to allocate new objects on the heap, to pass functions to other functions.
-
vincelet started the topic If else statement in the forum C++ 6 months, 1 week ago
Use if to specify a block of code to be executed, if a specified condition is true.
Use else to specify a block of code to be executed, if the same condition is false.
Use else if to specify a new condition to test, if the first condition is false. -
vincelet started the topic Most used shortcut keys in the forum Microsoft Word 6 months, 1 week ago
Ctrl + A: Select all contents of your document
Ctrl + C: Copy
Ctrl + V: Paste
Ctrl + s: Save
Ctrl+ X: Cut
Ctrl+N: create a new document
Ctrl+b: Bold
Ctrl+Z: Undoes the last action.
Ctrl+ F: Find
Ctrl+H: Replace
Ctrl+T: Create a hanging indent.
Ctrl+U: Underline the selected text.
Ctrl+ I: Italics
Ctrl+K – Insert a hyperlink
Ctrl + Enter: Insert an…[Read more]