What is data segment memory and code segment memory?
Code Segment, in which all the application code is stored
Data Segment, that holds the global data
early 1980's increased poverty
Is there any graphics program in c?
Search for BGIDEMO.C in your TurboC. There are thousands. Many Unix/Linux graphics programs are written mainly in C or C++, including X itself.
Print a c program to find greatest of 4 numbers?
#include<stdio.h>
#include<conio.h>
void main()
{
int a[4],max,i;
clrscr();
printf("Enter the four numbers:\n");
for(i=0;i<4;i++)
scanf("%d",a[i]);
max=a[o];
for(i=1;i<4;i++)
{
if(a[i]>max)
{
max=a[i];
}
}
printf("The Greatest number is %d",max);
getch();
}
Write a c program to represent graph as an adjacency multilist form?
#include
If else else sample programs java?
if (i==2)
if (j==2) System.out.println ("i==2 and j==2");
else System.out.println ("i==2 and j<>2");
else System.out.println ("i<>2");
examples:
- delete this node (identified by a pointer)
- insert a new node before this node
- replace this node with another node
Header files allow a C source file to use functions in other C files or library files. The linker ignores the fact that these functions are not defined in C source code, assuming that they'll be defined somewhere else.
"stdlib" offers prototypes for many functions that deal with string conversion, pseudo-random number generation, dynamic memory management, program environment, integer math and other functions not available within the C standard.
See the related link below for a list of function prototypes offered by stdlib.h.
What statement defines a function?
A function is a relation that assigns exactly one output for each input from a specified set, known as the domain. This means that for every element in the domain, there is a corresponding element in the codomain, ensuring that no input is mapped to more than one output. In mathematical terms, a function can be expressed as ( f: X \rightarrow Y ), where ( f ) is the function, ( X ) is the domain, and ( Y ) is the codomain.
What are the linked list utility in memory management?
A simple linked-list is an approach is to store the freelist of memory blocks, where each node of the linked list contains a pointer to a single free block in the memory pool.
A stack created by the user or a programmer is an implicit stack
What can we do in dos based c and that we can't in windows based c?
Access the hardware directly: possible in DOS, not possible in Windows.
A header parameter is a key-value pair sent in the HTTP headers of a request or response, providing essential metadata about the request or the resource being transferred. Header parameters can convey information such as content type, authorization credentials, caching directives, and more. They are crucial for controlling how clients and servers communicate and interpret the data being exchanged. Examples include "Content-Type," "Authorization," and "User-Agent."
What dire consequences could result from dereferencing a dangling pointer?
This could lead to a memory leak
To convert 123 in to that type one two three in c?
yes its easily convert to use of switch case:''''''''''''''
What are the different between stack and queue?
Why the index of an array be a positive number?
Since an array cannot contain a negative number of items, the size of an array must be at least 0. So if you ever tried to retrieve the element at a negative index in an array, it would automatically be understood to be out-of-bounds.