Toggle navigation
Login / Register
Ask Questions
Study
Current Affairs
Previous Papers
Kerala PSC
IBPS
UPSC
RBI
TNPSC
MPSC
SSC
CBSE
United States
Model Tests
News
More
Answers
Coaching Centres
Careers
Downloads
Colleges
Kuwait News & Classifieds
Classic Jhumka Earrings Silver
INR 113.00
Free Shipping
Buy Now
Black Jhumka Earrings & Studs
INR 94.00
Free Shipping
Buy Now
Classic Jhumka Earrings Silver
INR 207.00
Free Shipping
Buy Now
Beautiful stud earing
INR 93.00
Free Shipping
Buy Now
Different Size Hoop and Stud Earrings Set
INR 243.00
Free Shipping
Buy Now
Golden Hoop Earing
INR 70.00
Free Shipping
Buy Now
×
Create account with Openguide
Sign Up
By clicking Sign Up, you agree that you have read and accepted the
Open Guide Online User Agreement.
Already have an account?
Log in
×
Login to OpenGuide
Login
Forgot password?
Reset it
New user?
Register
×
Reset your password
Reset Password
Registered user?
Log in
New user?
Register
Home
Questions & Answer
Technology Questions & Answers
C programming Questions & Answers
C programming Questions & Answers
(Compiled from UPSC, SSC ,PSC ,IBPS previous question papers)
calloc() belongs to which library
A
stdlib.h
B
malloc.h
C
calloc.h
D
None of above
Exit() is same as return
A
TRUE
B
FALSE
Difference between calloc() and malloc()
A
calloc() takes a single argument while malloc() needs two arguments
B
malloc() takes a single argument while calloc() needs two arguments
C
malloc() initializes the allocated memory to ZERO
D
calloc() initializes the allocated memory to NULL
What will be the output of following program
#include
main()
{
int x,y = 10;
x = y * NULL;
printf("%d",x);
}
A
error
B
0
C
10
D
Garbage value
E
Answer And Explanation
Due to variable scope in c
A
Variables created in a function cannot be used another function
B
Variables created in a function can be used in another function
C
Variables created in a function can only be used in the main function
D
None of above
What will be output of
#include
void main()
{
char test =`S`;
printf(" %c",test);
}
A
S
B
Error
C
Garbage value
D
None of above
E
Answer And Explanation
Continue statement used for
A
To continue to the next line of code
B
To stop the current iteration and begin the next iteration from the beginning
C
To handle run time error
D
None of above
Break statement is used for
A
Quit a program
B
Quit the current iteration
C
Both of above
D
None of above
The first expression in a for loop is
A
Step value of loop
B
Value of the counter variable
C
Any of above
D
None of above
We can insert pre written code in a C program by using
A
#read
B
#get
C
#include
D
#put
1
2
Categories
Android
C programming
C++ programming
Cloud Computing
Computer
Computer System Architecure
Data Base
Data Structure
Internet & Social Media
Java programming
Manual Testing
MS Office
MySQL
Networking
Operating System
PHP
Programming
Software Engineering
Software Testing
Help & Support
About Us
Contact Us
Terms of Service