C Programming PDF
C Programming PDF
C tutorial C Programming Questions C Interview Questions C Programs C Test C programming pdf Program of c++ Sql Server
Function tutorial in c
Array tutorial in c
11 comments:
Preprocessor tutorial in c
priya said...
Advanced c tutorial
Does multiplication of complex number programing diifers from addition ? since it leads to squaring of
variable whats the logic of program.
POPULAR POSTS
11/2/08, 1:44 PM
C program examples | Interview
Complete List
Pard said...
C interview questions and answers
if(b<0) x="a+c;" y="b+d;">0)
Find out the perfect number using c
program
doesnt work?
Check the given number is armstrong
number or not using c program "nonportable pointer conversion"
http://www.cquestions.com/2008/01/write-c-program-to-find-addition.html 1/3
9/2/2017 C programming Interview questions and answers: Complex numbers program in c
C tutorial C Programming Questions C Interview Questions C Programs C Test C programming pdf Program of c++ Sql Server
Operators questions
Switch case questions Complex numbers are two dimensional numbers i.e. it consists
real part and imaginary part.
Looping questions
Complex numbers are written as a + ib
Pointer questions Where a and b are real numbers and i2 = -1
String questions
Code 1:
Printf,Scanf questions 1. How to use complex numbers in c
Preprocessor questions
2. C language complex numbers
http://www.cquestions.com/2011/09/complex-numbers-program-in-c.html 1/2
9/2/2017 C programming Interview questions and answers: Complex numbers program in c
Multiplication of complex numbers
QUICK SORT USING C PROGRAM
(a + ib) *(c + id) = (ac-bd) + i(bc+ad)
Check given number is prime number or
not using c program Divison of complex numbers
(a + ib) / c + id) = ((ac + bd) + i(bc-ad))/(c2 + d2)
C questions answers
No comments:
Post a Comment
http://www.cquestions.com/2011/09/complex-numbers-program-in-c.html 2/2
9/2/2017 C programming Interview questions and answers: Find g.c.d of two number using c program
C tutorial C Programming Questions C Interview Questions C Programs C Test C programming pdf Program of c++ Sql Server
Variable naming rule questions HFC is also called greatest common divisor (gcd). HCF of two
numbers is a largest positive numbers which can divide both
Operators questions
numbers without any remainder. For example HCF of two numbers
Control flow questions 4 and 8 is 2 since 2 is the largest positive number which can
dived 4 as well as 8 without a remainder.
Switch case questions
Variables tutorial in c Write a c program for finding gcd (greatest common divisor) of
Data types tutorial in c
two given numbers
Looping tutorial in c
#include<stdio.h>
C questions answers Other logic : HCF (Highest common factor) program with two
Write a c program to find out sum of digit
numbers in c
of given number
#include<stdio.h>
int main(){
int x,y=-1;
printf("Insert numbers. To exit insert zero: ");
while(1){
scanf("%d",&x);
if(x<1)
break;
else if(y==-1)
y=x;
else if (x<y)
y=gcd(x,y);
else
y=gcd(y,x);
}
printf("GCD is %d",y);
return 0;
}
65 comments:
Anonymous said...
http://www.cquestions.com/2008/01/write-c-program-to-find-gcd-of-two.html 2/14
9/2/2017 C programming Interview questions and answers: Find g.c.d of two number using c program
C tutorial C Programming Questions C Interview Questions C Programs C Test C programming pdf Program of c++ Sql Server
Variable naming rule questions HFC is also called greatest common divisor (gcd). HCF of two
numbers is a largest positive numbers which can divide both
Operators questions
numbers without any remainder. For example HCF of two numbers
Control flow questions 4 and 8 is 2 since 2 is the largest positive number which can
dived 4 as well as 8 without a remainder.
Switch case questions
Variables tutorial in c Write a c program for finding gcd (greatest common divisor) of
Data types tutorial in c
two given numbers
Looping tutorial in c
#include<stdio.h>
C questions answers Other logic : HCF (Highest common factor) program with two
Write a c program to find out sum of digit
numbers in c
of given number
#include<stdio.h>
int main(){
int x,y=-1;
printf("Insert numbers. To exit insert zero: ");
while(1){
scanf("%d",&x);
if(x<1)
break;
else if(y==-1)
y=x;
else if (x<y)
y=gcd(x,y);
else
y=gcd(y,x);
}
printf("GCD is %d",y);
return 0;
}
65 comments:
Anonymous said...
http://www.cquestions.com/2008/01/write-c-program-to-find-gcd-of-two.html 2/14
9/2/2017 C programming Interview questions and answers: Write a c program to find out L.C.M. of two numbers.
C tutorial C Programming Questions C Interview Questions C Programs C Test C programming pdf Program of c++ Sql Server
C tricky questions
Example of recursion in c
#include<stdio.h>
C programming forums
int lcm(int,int);
C TUTORIAL
int main(){
Memory mapping tutorial in c
Variables tutorial in c
Function tutorial in c
if(a>b)
l = lcm(a,b);
Array tutorial in c else
Preprocessor tutorial in c l = lcm(b,a);
Advanced c tutorial
printf("LCM of two integers is %d",l);
printf("LCM is %d",b);
return 0;
}
int temp = a;
while(1){
if(temp % b == 0 && temp % a == 0)
break;
temp++;
}
return temp;
}
24 comments:
http://www.cquestions.com/2010/06/write-c-program-to-find-out-lcm-of-two.html 2/7
9/2/2017 C programming Interview questions and answers: C program to find out the sum of infinite G.P. series: geometric progression
C tutorial C Programming Questions C Interview Questions C Programs C Test C programming pdf Program of c++ Sql Server
C tricky questions
Sample output:
Array tutorial in c
Example of G.P. series:
Preprocessor tutorial in c 2 4 8 16 32 64
Advanced c tutorial Here common difference is 2 since ratio any two consecutive
numbers for example 32 / 16 or 64/32 is 2.
POPULAR POSTS
Sum of G.P. series:
C program examples | Interview Sn =a(1–rn+1)/(1-r)
Complete List
http://www.cquestions.com/2011/07/write-c-program-to-find-out-sum-of_5747.html 1/2
9/2/2017 C programming Interview questions and answers: C program to find out the sum of infinite G.P. series: geometric progression
Sn = a/(1-r) if 1 > r
QUICK SORT USING C PROGRAM
= a/(r-1) if r > 1
Check given number is prime number or
not using c program 1. Write a c program to find out the sum of series 1 + 2 + …. + n.
2. Write a c program to find out the sum of series 1^2 + 2^2 + …. + n^2.
C questions answers 3. Write a c program to find out the sum of series 1^3 + 2^3 + …. + n^3.
4. Write a c program to find out the sum of given A.P.
Write a c program to find out sum of digit
5. Write a c program to find out the sum of given G.P.
of given number
6. Write a c program to find out the sum of given H.P.
MULTIPLICATION OF TWO MATRICES 7. Write a c program to find out the sum of series 1 + 2 + 4 + 8 … to infinity.
USING C PROGRAM 8. Big list of c program examples
http://www.cquestions.com/2011/07/write-c-program-to-find-out-sum-of_5747.html 2/2
9/2/2017 C programming Interview questions and answers: Write a c program to find out the sum of G.P series
C tutorial C Programming Questions C Interview Questions C Programs C Test C programming pdf Program of c++ Sql Server
Looping tutorial in c
Definition of geometric progression (G.P.):
Advanced c tutorial 2 4 8 16 32 64
Here common difference is 2 since ratio any two consecutive
POPULAR POSTS numbers for example 32 / 16 or 64/32 is 2.
C program examples | Interview Sum of G.P. series:
Complete List
Sn =a(1–rn+1)/(1-r)
C interview questions and answers
Tn term of G.P. series:
Find out the perfect number using c
program
Tn = arn-1
Check the given number is armstrong
number or not using c program Sum of infinite G.P. series:
http://www.cquestions.com/2011/07/write-c-program-to-find-out-sum-of-gp.html 1/2
9/2/2017 C programming Interview questions and answers: Write a c program to find out the sum of G.P series
10/1/15, 5:04 PM
Post a Comment
http://www.cquestions.com/2011/07/write-c-program-to-find-out-sum-of-gp.html 2/2
9/2/2017 C programming Interview questions and answers: Write a c program to find out the sum of in A.P. series
C tutorial C Programming Questions C Interview Questions C Programs C Test C programming pdf Program of c++ Sql Server
Pointer questions
printf("Enter the first number of the A.P. series: ");
scanf("%d",&a);
String questions
printf("Enter the total numbers in the A.P. series: ");
Printf,Scanf questions
scanf("%d",&n);
Preprocessor questions
printf("Enter the common difference of A.P. series: ");
Structure questions
scanf("%d",&d);
Commad line argument
sum = ( n * ( 2 * a + ( n -1 ) * d ) )/ 2;
C questions in Linux tn = a + (n-1) * d;
C online test printf("Sum of the series A.P.: ");
C mixed practice sets for(i=a;i<=tn; i= i + d ){
C tricky questions
if (i != tn)
printf("%d + ",i);
Example of recursion in c else
C programming forums printf("%d = %d ",i,sum);
}
C TUTORIAL
return 0;
Memory mapping tutorial in c }
Variables tutorial in c
Array tutorial in c
Definition of arithmetic progression (A.P.):
Preprocessor tutorial in c
http://www.cquestions.com/2011/07/write-c-program-to-find-out-sum-of-in.html 1/2
9/2/2017 C programming Interview questions and answers: Write a c program to find out the sum of in A.P. series
C questions answers
Post a Comment
http://www.cquestions.com/2011/07/write-c-program-to-find-out-sum-of-in.html 2/2
9/2/2017 C programming Interview questions and answers: Write a c program to find out the sum of series 1 + 2 + …. + n.
C tutorial C Programming Questions C Interview Questions C Programs C Test C programming pdf Program of c++ Sql Server
Printf,Scanf questions
printf("Sum of the series: ");
Example of recursion in c
Sample output:
Variables tutorial in c
Looping tutorial in c
POPULAR POSTS
http://www.cquestions.com/2011/07/write-c-program-to-find-out-sum-of.html 1/16
9/2/2017 C programming Interview questions and answers: Write a c program to find out the sum of series 1^2 + 2^2 + …. + n^2.
C tutorial C Programming Questions C Interview Questions C Programs C Test C programming pdf Program of c++ Sql Server
Advanced c tutorial
POPULAR POSTS
22 comments:
C program examples | Interview
Complete List preeree said...
thanks...............
C interview questions and answers
12/12/11, 2:02 PM
http://www.cquestions.com/2011/07/write-c-program-to-find-out-sum-of_19.html 1/4
9/2/2017 C programming Interview questions and answers: Write a c program to find out the sum of series 1^3 + 2^3 + …. + n^3
C tutorial C Programming Questions C Interview Questions C Programs C Test C programming pdf Program of c++ Sql Server
C interview questions and answers Write a c program or code to find out the sum of series 1^3 +
Data type questions 2^3 + …. + n^3 that is sum of cube of n natural numbers.
Variable naming rule questions
#include<stdio.h>
Operators questions #include<math.h>
Control flow questions
int main(){
Switch case questions
return 0;
C TUTORIAL
}
Memory mapping tutorial in c
http://www.cquestions.com/2011/07/write-c-program-to-find-out-sum-of_8643.html 1/4