APJ ABDUL KALAM TECHNOLOGICAL UNIVERSITY Previous Years Question Paper & Answer

Course : B.Tech

Semester : S1 and S2

Year : 2017

Term : DECEMBER

Branch : BIOTECHNOLOGY

Scheme : 2015 Full Time

Course Code : CS 100

Page:30





PDF Text (Beta):

int main()

{
int a,b;
a=10; 955; printf(“a= %d and
b= %d”, a,b); swap(a,b);
printf(“a= %d and b= %d”, a,b);

} the output will be : a=10

and
b=5 a=10 and
b=5

Take the following example :

void swap(int *a, int *b)

{
*a = *a+*b;
*b=*a-*b;
*a=*a-*h;

} int

main()

{

int a,b; a=10; 055; printf(“a=
%d and b= %d”, 8.0);

swap(&a,&b);
} the output will be : a=10
and
b=5 a=5 and

b=10

Similar Question Papers