#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 / guest

the x itself is 2 and the print out is 9

Is This Answer Correct ?    14 Yes 16 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

I just typed in this program, and it is acting strangely. Can you see anything wrong with it?

574


Write a program to generate the Fibinocci Series

676


Explain which function in c can be used to append a string to another string?

604


In a switch statement, explain what will happen if a break statement is omitted?

647


What is wrong in this statement?

619






Is there a way to jump out of a function or functions?

650


What is a wrapper function in c?

603


What’s the special use of UNIONS?

673


Why should I prototype a function?

657


a single linked list consists of nodes a to z .print the nodes in reverse order from z to a using recursion

2345


using only #include and #include Write a program in C that will read an input from the user and print it back to the user if it is a palindrome. The string ends when it encounters a whitespace. The input string is at most 30 characters. Assume the string has no spaces and distinguish between and lowercase. So madam is a palindrome, but MadAm is not a palindrome. Use scanf and %s to read the string. Sample Test: Enter a string: madam madam is a palindrome. Enter a string: 09023 09023 is not a palindrome.

1333


Function which gives a pointer to a binary trees const an integer value at each code, return function of all the nodes in binary tree.?

638


Explain what is a 'locale'?

596


What is #pragma statements?

600


can we have joblib in a proc ?

1667