A pointer is a constant or variable that contains an address of another variable of same type and in future, same address can be used to access the variable. Syntax for pointer declaration: So, using above syntax we can declare any type (built-in or derived) of pointer variable. In following figure, three built-in type of pointer variable has been created …
2-Dimensional (2 D) Array: memory aspect
A 2-D array can be logically think of array of arrays as shown below: Let’s have a program to understand 2-D array better: output a=0x7ffd8da57dc0 &a=0x7ffd8da57dc0 a[0]=0x7ffd8da57dc0 &a[0][0]=0x7ffd8da57dc0 a[1]=0x7ffd8da57dc8 &a[1][0]=0x7ffd8da57dc8 a[2]=0x7ffd8da57dd0 &a[2][0]=0x7ffd8da57dd0 Note: these values may vary, as the allocated memory location may change every time when a program is executed. The memory view of above program can be analyzed …
Array: memory aspect
An array can be defined as finite collection of homogeneous data, stored in contiguous memory locations. Where, finite: means the number of elements to be stored in array has to be predefined finite number. homogeneous: all the elements of the array should be of same type (i.e. int, char, float etc.). contiguous: all the elements of the array should be …
Print environment variables – C Program
In this article, we will discuss about a C program to print environment variables. Environment variables are a set of dynamic named values that can affect the way running processes will behave on a computer. In the main function, The third argument envp gives the program’s environment. env is available as an argument to main function, as envp – an array …
How to configure portable Java development kit (JDK)
What is JDK? JDK referred as Java Development Kit is used to develop various types of application in JAVA. Portable JDK? Portable means the code which can run anywhere you want. The portable JDK is also similar to that as we use JDK without actually installing it on our system. Check out the following video in Hindi language which explains …
Increment and decrement operators in C
Increment and decrement operators are unary operator i.e. these operators requires on one operands to perform its operations. The detail demonstration would be provided following videos.
How to debug a C program in code blocks ?
Code blocks is a popular IDE to compile and run programs developed in various languages. It has also been used for C and C++ languages. We generally develop console based application in these languages. Debugging is a process of finding and fixing some error and bugs in a given program. We can also use debugging tool to analyze our code …
What will be the output of the following code?
#include < stdio.h > void main() { int i=5; printf(“%d,%d,%d,%d,%d”, i++,i–,++i,–i,i); getch(); }
POD-04-OCT-2016
Write a program to toggle every character of a given string. For example Input: Hello, ThiS is for YOUr heLP. Output: hELLO, tHIs IS FOR youR HElp.
POD-02-OCT-2016
Write a program to convert a given string into sentence case. Ex: Input: 1. Hello, let’s Know about the Sentence case like In MS-WORD. 2. learning by doing. what you say ! Output: 1. Hello, lets know the sentence case like in ms-word. 2. Learning by doing. What you say !
- Page 1 of 2
- 1
- 2