C Programming
Questions related to the C Computer Programming Language. This ranges all the way from K&R to the most recent ANSI incarnations. C has become one of the most popular languages today, and has been used to write all sorts of things for nearly all of the modern operating systems and applications. It it a good compromise between speed, power, and complexity.
Total questions 35900
Stupid little genius (supervisor) [1372]
removed Sort the follwing list of numbers in descending from C Programming 11 minutes ago
PCForrest [7]
made this change to the answer of What is pre increment and post increment in c language 26 May 2012 03:31
Cyclone777 (supervisor) [229]
added How do you make an program in object oriented programming to C Programming 26 May 2012 02:29
Wiqimcs [1]
wrote the first answer to What is pre increment and post increment in c language 25 May 2012 21:33
"near" and "far" pointers are actually non-standard qualifiers that you'll find only on x86 systems. They reflect the odd...
Popularity: 679 • Tools: Recategorize
A near pointer is a 16 bit pointer to an object contained in the current segment, be it code segment, data segment, stack...
Popularity: 631 • Tools: Recategorize
Difference Between Malloc and Calloc There are two differences. First, is in the number of arguments. Malloc() takes a single...
Popularity: 312 • Tools: Recategorize
1.type checking in const that is not a part of #define. 2.scope 3.debugging is possible with const. Answer const variable...
Popularity: 195 • Tools: Recategorize
Most programs you can download in source form can be compiled using the following simple steps: 1. Extract the source package...
Popularity: 175 • Tools: Recategorize
When new has an object, space for the object is not only allocated but the object's constructor is called. And similarly when...
Popularity: 157 • Tools: Recategorize
include <cstdio> int fact(int x); int main() { int x, total; printf("Enter a number: "); scanf("%d", &x); total...
Popularity: 155 • Tools: Recategorize
//program to add two numbers #include<stdio.h> #include<conio.h> void main() { int a,b,c; clrscr(): //its...
Popularity: 154 • Tools: Recategorize
A union is a way of providing an alternate way of describing the same memory area. In this way, you could have a struct that...
Popularity: 152 • Tools: Recategorize
C language has a function that contains the object code for predefined functions.for example,the printf() is a library...
Popularity: 152 • Tools: Recategorize
This is found in the printf family of functions. The % is just a flag that says that the next character specifies a variable...
Popularity: 149 • Tools: Recategorize
ALGORITHM REVERSEINPUT (string)"STRINGLENGTH() would be a function that returns the lenght of the string"FOR (i =...
Popularity: 148 • Tools: Recategorize
In the 8086/8088, the execution unit is the part of the processor known as the CPU. It executes the instructions and generates...
Popularity: 148 • Tools: Recategorize
It's the programming language that is used the most today.
Popularity: 146 • Tools: Recategorize
main(){ int n,i=1; printf("Enter the Number till you want to print even numbers"); scanf("%d",&n); printf("Even Numbers till...
Popularity: 145 • Tools: Recategorize
Neither linker or loader is part of the C language, they are platform-dependent utility programs. Linker (or binder) creates an...
Popularity: 145 • Tools: Recategorize
BA = 11*16 + 10 = 176 + 10 = 186
Popularity: 143 • Tools: Recategorize
Orthogonality is to do with a right angle, what has orthogonality got to do with general computer programming?I fear this is...
Popularity: 143 • Tools: Recategorize
its a way in which u order ur data items in memory for easy retrieval again
Popularity: 141 • Tools: Recategorize
'Main' is not at all associated with the return type. Specifying a function as main means that the function is to be executed...
Popularity: 141 • Tools: Recategorize
means whether the matrix is same or not program for symmetric matrix : include<stdio.h>#include<conio.h>main(){...
Popularity: 140 • Tools: Recategorize
writes data to a FILE* stream.
Popularity: 140 • Tools: Recategorize
Bubble sort will be able to sort the items lexicographically, if you first assign the strings a relative value. The way strcmp in...
Popularity: 138 • Tools: Recategorize
an if then else statement is a statement using if and then else ... so it was the else if then if else . like thisin...
Popularity: 136 • Tools: Recategorize
It is Control+F9
Popularity: 136 • Tools: Recategorize
Parallel port is the most simplest port of computer to use. It is too simple to use in Turbo C++ . there are two types of...
Popularity: 135 • Tools: Recategorize
There are several good sites, for example dreamincode.com, which have projects and workshops that you can follow at your own...
Popularity: 135 • Tools: Recategorize
The advantage of using a platform independent language is that a program designed using such platform is independent on the...
Popularity: 135 • Tools: Recategorize
s
Popularity: 135 • Tools: Recategorize
Example: int x; -- integer int *px= &x; -- pointer to integer int **ppx= &px; -- pointer to pointer to integer int...
Popularity: 135 • Tools: Recategorize
Check out supportsoft.com. See something familiar? I had to go into the registry and delete all the supportsoft entries. Don't...
Popularity: 134 • Tools: Recategorize
assembly instructions are mnemonics.
Popularity: 134 • Tools: Recategorize
An Array is a data type that stores multiple values in one variable. It can be thought of as a bunch of values that are related...
Popularity: 133 • Tools: Recategorize
int main() { int i, j, n; scanf(n); for(i=1; i <= n; i++) for(j=1; j <= i; j++) printf(j); ...
Popularity: 132 • Tools: Recategorize
A. Pretest LoopPage 169Tony Gaddis: Textbook for Programming Logic & Design
Popularity: 132 • Tools: Recategorize
Java is pure object oriented programming language than c++, it uses the concepts of Classes, Objects, Inheritance, Polymorphism....
Popularity: 131 • Tools: Recategorize
/* Write a program to identify and generate the tokens present in the given input */ /* Token Separation */ ...
Popularity: 131 • Tools: Recategorize
Languages like C, Pascal, Basic do not use classes, polymorphism, etc, they promote functional style of programming. Languages...
Popularity: 131 • Tools: Recategorize
You cannot delete an uninitialized pointer, because there is no allocation for the object, and the pointer contains garbage. That...
Popularity: 131 • Tools: Recategorize
Quite a lot of them. Exampl: Alt+F9 = Compile Ctrl+F9 = Compile+Link+Run
Popularity: 130 • Tools: Recategorize
puts ("32"); /*or*/ printf ("2^5=%d\n", 1<<5);
Popularity: 128 • Tools: Recategorize
Jar files are basically zip files, but they are supposed to store java classes, they have nothing to do with C.
Popularity: 128 • Tools: Recategorize
A NULL pointer has the same size as a non NULL pointer. NULL means that the pointer has been set to the NULL value that is...
Popularity: 128 • Tools: Recategorize
If you are using for loop for(;;); or you can also define condition and iterations but the loop has to close there itself...
Popularity: 128 • Tools: Recategorize
Easy: if-else is not a loop; while, for and do-while are loops. if-else just run once, but do-while run many times.
Popularity: 127 • Tools: Recategorize
getch is used if you want to read a character. Some OSes close command window line before you even can see it. Some people use...
Popularity: 127 • Tools: Recategorize
Registers or RAM-memory.
Popularity: 126 • Tools: Recategorize
c tokens--> all the identifiers and keywords used in c. for example int, char, a, b, printf, scanf, etc.
Popularity: 126 • Tools: Recategorize
No, there is no such thing as 'middle level language'. C is high level language, and it is no way similar to Assembly language.
Popularity: 126 • Tools: Recategorize
The core of it: for (ndig=1; (n/=10)!=0; ++ndig);
Popularity: 125 • Tools: Recategorize
stack is data structure used to store the continues block memory and operations insertion,deletion takes place at only at one end...
Popularity: 125 • Tools: Recategorize
The big disadvantage I've found is that you might mistake it for a user-defined type. It's not; you still have to use int for...
Popularity: 124 • Tools: Recategorize
on a mac you can click COMMAND Q (file, quit....) on a PC you can click ALT F4 (you also can just press X on the top right side)
Popularity: 124 • Tools: Recategorize
Sample: 0AAC1801 BD07A2F3 4740A130 D25B4000 A18ABD07 A2F347D0 A0A04110 405C4150
Popularity: 124 • Tools: Recategorize
What programming language you know would be a good place to start.
Popularity: 123 • Tools: Recategorize
If you want a free compiler and integrated development environment (IDE) you could google for codeblocks There are 2 versions...
Popularity: 123 • Tools: Recategorize
An array could be called static because it is generally not changed structurally once it is created, meaning that you do not add,...
Popularity: 123 • Tools: Recategorize
include <stdio.h> void main() { void hanoi(char,char,char,int); char t1='A',t2='B',t3='C'; int n; printf("\n Enter...
Popularity: 122 • Tools: Recategorize
Memory leakage, problems with tracking and managing.
Popularity: 122 • Tools: Recategorize
format specifier in c is %
Popularity: 122 • Tools: Recategorize
members in union and enum both shares memory and the size of the union is the size of the highest element like if there is one...
Popularity: 121 • Tools: Recategorize
prime a loop is that how mach time it executed either max time or minimum time
Popularity: 121 • Tools: Recategorize
Is it a file or a folder you want to create? Use open/creat/fopen for the former, mkdir for the latter. Example: FILE *f; int...
Popularity: 121 • Tools: Recategorize
static, extern, auto, register (and typedef, but only formally)
Popularity: 121 • Tools: Recategorize
by going to school and learn how to code.
Popularity: 121 • Tools: Recategorize
Array is not a struct. Array only has one datatype, struct has arbitrary different datatypes.
Popularity: 120 • Tools: Recategorize
Void is not relay a data type as there is no size of storage associated with it where as char, int, long, float etc have a...
Popularity: 120 • Tools: Recategorize
Hi, In terms of a set of objects, the frist-in-first-out approach consists in that the first object to have been added to the...
Popularity: 119 • Tools: Recategorize
Double is more precise than float. The 4 bytes saved on a float are usually not very relevant. However, if you need to save large...
Popularity: 119 • Tools: Recategorize
A 'throw' statement throws an exception when it is generated within a try block. The exception is then caught by the...
Popularity: 119 • Tools: Recategorize
Because they are created and destroyed on 'last-in-first-out' principle.
Popularity: 119 • Tools: Recategorize
Eclipse with CDT (C/C++ development tools) see: http://eclipse.org/cdt
Popularity: 118 • Tools: Recategorize
ITS EASY... TRY THIS OUT.. TRAPEZOIDAL METHOD #include<stdio.h> #include<math.h> #include<stdlib.h> float...
Popularity: 118 • Tools: Recategorize
Linked list otherwise known as a one way list is a linear collection of data elements called nodes,where the linear order is...
Popularity: 118 • Tools: Recategorize
Pseudo code does not have key words, you make it up, that's why it is pseudo.
Popularity: 117 • Tools: Recategorize
Inorder(p) { If p = nil return; Inorder(p.left) process(p.data) Inorder(p.right) }
Popularity: 116 • Tools: Recategorize
An undefined symbol is where you make a reference to a symbol, but you have not yet declared and defined it.
Popularity: 116 • Tools: Recategorize
(link moved to link section) C is moving to embedded & lot more updates, its there on this website
Popularity: 115 • Tools: Recategorize
There is no such thing. There are binary trees and liked lists.
Popularity: 114 • Tools: Recategorize
include<iostream.h> #include<conio.h> void main() { int i; char j; clrscr(); for(i=97;i<102;i++) { ...
Popularity: 114 • Tools: Recategorize
int main (void) { puts ("Simple, but not working program without any semicolon and header file") }
Popularity: 114 • Tools: Recategorize
In C, a variable declared as static in a function is initialised once, and retains its value between function calls. The...
Popularity: 113 • Tools: Recategorize
You cannot define the size of the structure, but you can query it with sizeof. The structure size in C language depends on the...
Popularity: 111 • Tools: Recategorize
You can change the data type of an existing field using a union, however, you should understand that bit format dependance is not...
Popularity: 111 • Tools: Recategorize
The continue statement is not actually used when it is the last statement of the body of the loop. Plus: outside any loop it is...
Popularity: 110 • Tools: Recategorize
A literal is a constant expressed in code. For instance... int a = 1234; ... the "1234" part is the literal. Often, unless the...
Popularity: 110 • Tools: Recategorize
Yes, I do that every day.
Popularity: 109 • Tools: Recategorize
31 is the correct answer. We arrive at the answer by the following process:24 + 23 + 22 + 21 + 20 = 31 in decimal.
Popularity: 109 • Tools: Recategorize
int gcd(int x,int y) {if(y==0)return x;return gcd(y,x%y);}
Popularity: 107 • Tools: Recategorize
No, MS-DOS does not support multi-threading (or multi-processing either).
Popularity: 105 • Tools: Recategorize
Input and output should be trivial; the core of it is: m = (n<<3)>>5 Note: it is not the same as m = n>>2
Popularity: 104 • Tools: Recategorize
The same as in any other C compiler.
Popularity: 104 • Tools: Recategorize
Derived data types are based on fundamental data types. i.e. a derived data types is represented in the memory as a fundamental...
Popularity: 103 • Tools: Recategorize
In one line C is procedural language and C++ is object oriented programing language. In a procedural language, your solution to...
Popularity: 99 • Tools: Recategorize
Sum = n/2[2Xa1+(n-1)d] where n is last number, a1 is the first number & d is the common difference between the numbers, here...
Popularity: 99 • Tools: Recategorize