Professional Documents
Culture Documents
1000 C MCQs
C Programming
Questions and
Answers –
Formatted
Input – 1
« Prev Next »
1. #include <stdio.h>
2. int main()
3. {
4. int n;
5. scanf("%d", n)
6. printf("%d\n"
7. return 0;
8. }
a) Compilation error
b) Unde ned behavior
c) Whatever user types
d) Depends on the
standard
View Answer
View Answer
Mock Test - Chapter 3
a) Compilation error
b) Unde ned behavior
c) Whatever user types
d) None of the mentioned
View Answer
1. #include <stdio.h>
2. int main()
3. {
4. short int i;
5. scanf("%*d", &
6. printf("%hd",
7. return 0;
8. }
a) Compilation error
b) Somegarbage value
c) Whatever user types
d) Depends on the
standard
View Answer
1. #include <stdio.h>
2. int main()
3. {
4. short int i;
5. scanf("%*hd",
6. printf("%hd",
7. return 0;
8. }
a) Compilation error
b) Somegarbage value
c) Whatever user types
d) Depends on the
standard
View Answer
1. #include <stdio.h>
2. int main()
3. {
4. short int i;
5. scanf("%h*d",
6. printf("%hd",
7. return 0;
8. }
a) Compilation error
b) Unde ned behavior
c) Somegarbage value
d) Depends on the
standard.
View Answer
View Answer
9. If the conversion
characters of int d, i, o, u
and x are preceded by h, it
indicates?
a) A pointer to int
b) A pointer to short
c) A pointer to long
d) A pointer to char
View Answer
Sanfoundry Global
Education & Learning
Series – C Programming
Language.
C Practice Resources
C Mock Tests &
Certi cation Test | 1000
C MCQs | 1000 C
Programs | 1000 C
Algorithms | Best C
Books | C Internship
Participate in the
Sanfoundry Certi cation
contest to get free
Certi cate of Merit. Join
our social networks below
and stay updated with
latest contests, videos,
internships and jobs!
Youtube | LinkedIn |
Instagram | Facebook |
Twitter | Pinterest
« Prev - C Programming
Questions and Answers –
Variable Length Argument
–2
» Next - C Programming
Questions and Answers –
Formatted Input – 2
advertisement
Recommended
Posts:
1. C Programming
Examples on
Numerical
Problems &
Algorithms
2. C Programming
Examples on
Strings
3. C Programming
Examples on Matrix
4. C Programming
Examples on
Bitwise Operations
5. Python
Programming
Examples
6. C++ Programming
Examples on Set &
String Problems &
Algorithms
7. Java Programming
Examples
8. C Programming
Examples without
using Recursion
9. C Programming
Examples on Set &
String Problems &
Algorithms
10. PLC Programming
Examples
11. C# Programming
Examples on
Networking
12. Java Programming
Examples on
Java.Lang
13. C Programming
Examples
14. C# Programming
Examples
15. C Algorithms,
Problems &
Programming
Examples
16. Java Algorithms,
Problems &
Programming
Examples
17. C++ Algorithms,
Problems &
Programming
Examples
18. C# Programming
Examples on Matrix
19. C Questions and
Answers
20. Java Programming
Examples on
Classes
Leave a Comment
Name *
Email *
Website
Post Comment
Ma
nish
Bho
jasi
a, a
tec
hno
logy veteran with 20+
years @ Cisco & Wipro, is
Founder and CTO at
Sanfoundry. He is Linux
Kernel Developer & SAN
Architect and is passionate
about competency
developments in these
areas. He lives in
Bangalore and delivers
focused training sessions
to IT professionals in Linux
Kernel, Linux Debugging,
Linux Device Drivers, Linux
Networking, Linux Storage,
Advanced C Programming,
SAN Storage Technologies,
SCSI Internals & Storage
Protocols such as iSCSI &
Fiber Channel. Stay
connected with him @
LinkedIn
Subscribe Sanfoundry
Newsletter and Posts
Name*
Email*
Subscribe
About | Certi cations | Internships | Jobs | Privacy Policy | Terms | Copyright | Contact