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

Java was developed in which year?
1995 By Sir James Gosling
Mohit
0 1
8
How can you make an image transparent?
You make image transparent in photoshop. save your image as PNG.
Neha
0 0
5
Why do we use # in C programming?
In the C programming language, # is used for preprocessor directives. The preprocessor is a program that runs before the compiler and processes special directives that begin with # . These directives allow...
Dhanya
0 0
5

which is best course after done MBA F&M and SAP MM Counsult level course ?  please suggest Non -SAP Course ? 

SAP is a good choice, get certified as functional consultant for the Finance module of SAP
Priya
I have BPO experience of 3 years, but now I want to shift to IT. I want to do SAP course. Can you suggest me which module I have to do, as I am an electronics background student? Tier 1 companies will hire me?
Hi Harsh, As you have 3experience into BPO so don't have any knowledge into IT. rather than going with SAP we suggest u to take Software Testing Tools best entry level to get into IT Sector for non technical background
Harish

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

Ask a Question

Related Lessons

Sub Queries in SQL(Structured Query Language)
Writing the Query in one more Query is called Sub Query. In Oracle SQl Sub Queries are Diveded into two categories Simple Sub Queries Cor-related Sub Queries The difference between Simple Sub Queries...

The Best Option JavaScript Language For Developers
We already know about JavaScript. But today I will be discussing JavaScript features and JavaScript development process. I was wonder about JavaScript last 10 years. Because JavaScript can give us frontend...

What Is Phython?
Python is a general-purpose interpreted, interactive, object-oriented, and high-level programming language. It was created by GuidovanRossum during 1985- 1990. Like Perl, Python source code is also available...

Decorator Introduction
A decorator takes in a function, adds some functionality and returns it. Functions can be passed as arguments to another function like map, filter and reduce Function that take other functions as arguments...

Oracle Architecture - Introduction
As a Oracle developer or a DBA, you should know the in & out of it’s Architecture. Let’s keep it simple first and explore later. Oracle is a software or a program, so like any other program,...

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