#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
What is a node in c?
How can you invoke another program from within a C program?
Write a program to print “hello world” without using semicolon?
What is the stack in c?
write a program that reads lines(using getline), converts each line to an integer using atoi, and computes the average of all the numbers read. also compute the standard deviation.
What are dangling pointers in c?
Explain what is the advantage of a random access file?
What is sizeof in c?
What is n in c?
what is bit rate & baud rate? plz give wave forms
Describe the header file and its usage in c programming?
Explain the difference between malloc() and calloc() in c?
What are the advantages of Macro over function?
What is size of union in c?
What do mean by network ?