Majority of the people now a days take things for granted. And they assume that they know things, which will not be true in reality. With respect to that, let me ask a question related to C language. This question is for students and not for trainers. If you as a student can answer to such questions, then fine. Otherwise, you need to look back. Below is the question: #include "stdio.h" unsigned int myprint; int main ( ) { myprint = printf; myprint ("code is working \n"); return 0; } What is output of the above code snippet? If it works, how? You need to justify. If it does not work, why? You need to justify. You can also propose solutions. Note 1: Do not use #define Note 2: Do not directly put code on to computer. First analyze by putting it on paper. Use computer, only to validate / verify your analysis Note 3: I can put more of such questions related to C, Linux and Scripting (Python, Perl and Tcl), if students are interested.

Asked by Last Modified  

3 Answers

+1 C Language

Follow 1
Answer

Please enter your answer

This will produce error. 1. You can not never assign a 'printf' which is a function to a integer variable. 2. 'myprint' cannot be used as a function.
Comments

Freelance technical trainer / consultant (Embedded systems, Automation / Scripting) : C, Linux, Embedded systems, python, perl, tcl

Anup, which line you expect an error? And, if it gives an error, what are the solutions you propose?
Comments

Freelance technical trainer / consultant (Embedded systems, Automation / Scripting) : C, Linux, Embedded systems, python, perl, tcl

Surprised that fresh minds are not interested to give it a try.
Comments

View 1 more Answers

Related Questions

How do I remove white lines on the Photoshop from pictures?
Can you be more specific, what kind of white lines are mentioning here? Can you share an image for example?
Parna
0 0
7
Hi I completed my btech in ece stream and right now I am doing my mba in finance so will it be helpful for me to go for sap fico and will it be in demand?
It will be helpful to do SAP FI&CO cource if you are inclination to be a functional consultant.SAP FICO has a very good demand in the market.FICO needs very good accounting knowledge.
Faizaan
Which one is better institute in Ameerpet, Hyderabad for personality development?
I work as a consultant, Nidhi. Not sure about an institute.
Nidhi
0 0
8
I want to switch into SAP and start growing my career. Will SAP-ABAP be the right choice?
SAP ABAP is very good for exponential growth in career..
Puneethkumar
0 0
5

Now ask question in any of the 1000+ Categories, and get Answers from Tutors and Trainers on UrbanPro.com

Ask a Question

Related Lessons

Peeling Sticker Effect in Flash
Program: Animate cc Difficulty: All Estimated Completion Time: 40 hrs Here we are taking the stage dimensions as 300×400 and the FPS is 24, as shown in the Figure below. To start with the...

What DBA should do to avoid database from running out of space?
Disk space is something that really critical for SQL Server, and if we don’t keep a close eye on available disk resources, it could cause database failures or hamper depended on the major business...

Control Charts
Used to determine if process is stable or unstable Upper Control Limit and Lower Control Limit are set by process. These denote the statistical boundaries within which the process should operate...

How to Create Seamless Patterns in Adobe Illustrator fast and easy
Step 1 Let’s start with Actions panel. Actions can run any function in Adobe Illustrator. Also, you can attach hotkeys to your Actions. And Actions can run scripts of course. Take Free Stock Master...

Dialog Runbase Example in AX 2012
class Runbase_Example extends RunBase{TransDate fromDate,toDate;CustAccount custAccount;DialogField dlgFromDate,dlgToDate,custDldField;#define.CurrentVersion(1)#localmacro.CurrentListfromDate,toDate#endmacro}protected...

Recommended Articles

Almost all of us, inside the pocket, bag or on the table have a mobile phone, out of which 90% of us have a smartphone. The technology is advancing rapidly. When it comes to mobile phones, people today want much more than just making phone calls and playing games on the go. People now want instant access to all their business...

Read full article >

Business Process outsourcing (BPO) services can be considered as a kind of outsourcing which involves subletting of specific functions associated with any business to a third party service provider. BPO is usually administered as a cost-saving procedure for functions which an organization needs but does not rely upon to...

Read full article >

Whether it was the Internet Era of 90s or the Big Data Era of today, Information Technology (IT) has given birth to several lucrative career options for many. Though there will not be a “significant" increase in demand for IT professionals in 2014 as compared to 2013, a “steady” demand for IT professionals is rest assured...

Read full article >

Information technology consultancy or Information technology consulting is a specialized field in which one can set their focus on providing advisory services to business firms on finding ways to use innovations in information technology to further their business and meet the objectives of the business. Not only does...

Read full article >

Looking for IT Courses ?

Learn from the Best Tutors on UrbanPro

Are you a Tutor or Training Institute?

Join UrbanPro Today to find students near you