skip to main
|
skip to sidebar
Twitter
Facebook
RSS Feed
Search This Blog
Home
Computer Basics
Fundamentals
Microsoft Office
Operating Systems
Object Oriented Concepts
Data Structures
Data Base Management System
Computer Networks
Computer Architecture
Compiler Design
Mobile Computing
Programming
C Programming
C++ Programming
Java Programming
Internet Basics
Internet Programming
Dynamic HTML
Active Server Pages
JSP/Servlets
Mobile App Dvpt
Open Source
Basics
Linux OS
MySQL DB
PHP
Python
Book Publishing
Technical
Spiritual
Spiritual
Articles
Songs
Thought for the Day
Pearls from Proverbs
Tuesday, 1 April 2025
What will be the Output of These Code Snippets?
Posted by
David Livingston J
at
08:09
0 comments
C Programming
Q1: What will be the output of the program ?
#include<stdio.h>
void main()
{
int a[5] = {5, 1, 15, 20, 25};
int i, j, m;
i = ++a[1];
j = a[1]++;
m = a[i++];
printf("%d, %d, %d", i, j, m);
}
A) 3, 2, 15
B) 2, 3, 20
C) 2, 1, 15
D) 1, 2, 5
Leave a Reply
Newer Post
Older Post
Subscribe to:
Post Comments (Atom)
God Says in the Bible...
Useful Links to Navigate!
Our Publications
Biblical Truths
ePathshala
My Research Work
Books Authored by the Blogger!
Books are avilable online @ notionpress.com, flipkart.in & amazon.in
Books Revised & Republished!
Some of the Books Republished by us in the field of Computer Science and Engineering are as follows:
Fundamentals of Computer & Internet
Java Programming
ABCs of Cloud Computing
Recent
Popular
Label
Labels
Artificial Intelligence
ASP
Basics of Internet
C Programming
C++ Programming
Cloud Computing
Compiler Design
Computer Architecture
Computer Fundamentals
Computer Networks
Computer Organization and Architecture
Data Structures
DBMS
DHTML
Engineering
Frequently Asked Questions
General
Information Security
Internet Programming
J2EE
Java Programming
Life of Godliness
Linux OS
Microsoft Office
Mobile Application Development
Mobile Computing
My Confession and Praise
MySQL
Object Oriented Programming
Open Source
Operating Systems
Pearls from Proverbs
PHP Programming
Problem Solving
Python Programming
Software Engineering
Songs
Spiritual
Spiritual Articles
Spiritual Books
Technical Books
Theory of Computation
Thought
Tool Command Language
University Questions
Web Technologies
Total Pageviews
FFY Center for Learning (CSE)
© 2011
FutureForYou Network
. Supported by
W3G Team
and
FutureForYou.in