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

Are skills in Excel VBA useful to have?
Yes the skills are very useful
Kalpana
I completed my graduation in 2017, now working as an HR Executive in a Consultancy. I want to move to IT Sector. Which course is best for me to learn and get success in life? Please Suggest me
Dear Kumar, My suggestion is to - become good in one programming language - preferably Java and one O/S preferably Linux. Be aware of Open Source systems. Try to identify the opportunities in your existing...
Kumar
Is JAVA training only for technical students or a non-technical student also may join?
Any Body can Learn Programming Language.It All depends upon the learning of basics and all.Basics actually makes the thing different.
Vikrant
0 0
6
Can anyone suggest about Hadoop?
Hadoop is good but it depends on your experience. If you don't know basic java, linux, shell scripting. Hadoop is not beneficial for you.
Ajay

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

Ask a Question

Related Lessons

Why AngularJS Got Popular
AngularJS became very popular due to its easy two-way data binding, MVC architecture, built-in module system, dependency injection, and routing package. Initially built as a hobby project by Misko Hevery...

Excel Tip 1: VLOOKUP to pull left column values
Hi,Most of us know that using Vlookup function we can get the right column values, however by using Choose function in Vlookup table array, we can pull left column values as well. In the below screenshot...

Shortcut of Excel for Selection
Select the whole column: CTRL + SPACE Select the whole row: SHIFT + SPACE Select table: SHIFT + CTRL + SPACE bar Select visible cells only: ALT + ; Select entire region: CTRL + A Select range from...

AutoCAD Interview Questions
AutoCAD Interview Questions Some essential inquiries and answers identified with AutoCAD Application. 1) What is Autocad? 2) What is the employment of Autocad? 3) What are where you see the most significant...

Write your first Python program in 10 minutes
1. Download python from python official site search "python download" in google 2. Install in your machine 3. verify using : "python --version" command 4. Write first program using notepad create...

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