a) List four important features of C language [2 marks]
b) What is wrong with the variable declaration and assignment in the following programs?
I. #include<stdio.h>
Int main(){
Int goto=5;
Printf (“%d”,goto);
Return 0;
} [1 mark]
ii.
#include<stdiio.h>
Int main(){
Int BIG=32;
Int y;
Y=_BIG_&&8;
Printf(“%d”,y);
Return 0;
} [2 marks]
c)By means of as simple illustration, show the difference between local variable and global variable as used in C programming [4marks]
d)
I. If n is an integer variable ,what is the value of the expression n%8 when the value of n is 24? [1 mark]
II. What is the value of the expression 2*6-5+8%5 [1 mark]
III. What will be printed when the following segment is executed as part of a program?
Int i,total;
For(i=1 ;i=15;i=i=i+1)
{ if(i%3==0)
{
Printf(“%d”,i);
}
}
Printf(“\n\n”); [2 marks]

 

 

For a custom-written paper on the above topic, place your order now!

What We Offer
• On-time delivery guarantee
• PhD-level professionals
• Automatic plagiarism check
• 100% money-back guarantee
• 100% Privacy and Confidentiality
• High Quality custom-written papers

Found something interesting ?

• On-time delivery guarantee
• PhD-level professional writers
• Free Plagiarism Report

• 100% money-back guarantee
• Absolute Privacy & Confidentiality
• High Quality custom-written papers

Related Model Questions

Feel free to peruse our college and university model questions. If any our our assignment tasks interests you, click to place your order. Every paper is written by our professional essay writers from scratch to avoid plagiarism. We guarantee highest quality of work besides delivering your paper on time.

Grab your Discount!

25% Coupon Code: SAVE25
get 25% !!