Get fully solved assignment. Buy online from website
online store
or
plz drop a mail with your sub code
we will revert you within 2-3 hour or immediate
Charges rs
125/subject and rs 500/semester only.
if urgent then call us
on 08791490301, 08273413412
PROGRAM: BCA (REVISED FALL 2012)
SEMESTER: FIRST
SUBJECT CODE & NAME: BCA1020- PROGRAMMING IN C
CREDIT: 4
BK ID: B1639
MAX. MARKS: 60
Q1.
Explain the history of C language. What are the advantages of C language?
Answer:
The C programming language was
devised in the early 1970s by Dennis M. Ritchie an employee from Bell Labs
(AT&T).
In the 1960s Ritchie worked, with
several other employees of Bell Labs (AT&T), on a project called
Q.2:
Differentiate between formal parameters and actual parameters with example
ANS:
Parameters (also called formal parameters)
or arguments are the special identifiers through which information can be
passed to the function. A function has a body
containing the actual instructions (statements) for carrying out the
Q.3:
Describe about static and external variables.
ANS:
Static Variables
Static variables are defined
within individual functions and therefore have the same scope as automatic
variables, i.e. they are local to the functions in which they are declared.
Unlike automatic variables, however, static variables retain their values
throughout the life of the program. As a result, if a function is exited and
then
Q.4: Distinguish between pass by
value and pass by reference with the help of an example.
ANS:
Pass
by value:
Pass by value may be very
inefficient if the structure is large (i.e., has many members). They have
identical declaration syntax and member access, but they serve a very different
purpose. Defining pointer types is the same as for
Q5.
Write a C program to perform addition, subtraction, multiplication and
division.
Answer:
#include
<stdio.h>
int main()
{
int first, second, add, subtract, multiply;
float divide;
Q6.
Write a C program to check if the number is palindrome.
Answer:
/*
C program to check whether a number is palindrome or not */
#include <stdio.h>
int main()
Get fully solved assignment. Buy online from website
online store
or
plz drop a mail with your sub code
we will revert you within 2-3 hour or immediate
Charges rs
125/subject and rs 500/semester only.
if urgent then call us
on 08791490301, 08273413412
No comments:
Post a Comment