#include <stdio.h>
#define sqr(x) (x*x)
int main()
{
int x=2;
printf("value of x=%d",sqr(x+1));
}

What is the value of x?

Answer Posted / poorna

Warning: Function Should have return value........

Is This Answer Correct ?    4 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are dangling pointers in c?

645


Describe the order of precedence with regards to operators in C.

633


Explain what will the preprocessor do for a program?

605


What are the key features in c programming language?

618


Write a C program on Centralized OLTP, Decentralized OLTP using locking mechanism, Semaphore using locking mechanism, Shared memory, message queues, channel of communication, sockets and a simple program on Saving bank application program using OLTP in IPC?

2174






Which is best linux os?

565


Why is not a pointer null after calling free?

599


What is include directive in c?

646


a sequence of bytes with one to one corrspondence to those in the external device a) sequential addressing b) address c) byte code d) none

725


Write a program to check palindrome number in c programming?

601


Can we add pointers together?

621


How do you do dynamic memory allocation in C applications?

630


What is a constant?

636


we called a function and passed something do it we have always passed the "values" of variables to the called function. such functions calles are called a) calls by reference b) calls by value c) calls by zero d) none of the above

638


Device an algorithm for weiler-atherton polygon clipping, where the clipping window can be any specified polygon

5464