#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

Write a program to check palindrome number in c programming?

604


What is string constants?

670


how many types of operators are include in c language a) 4 b) 6 c) 8 d) 12

660


Write a program to swap two numbers without using the third variable?

604


what is the format specifier for printing a pointer value?

621






What is p in text message?

549


main use of recursive function a) processing speed high b) reduce program length/reduce repeated statements c) if you do not, use iterative methods like, for, while or do-while d) all the above

621


PROGRAM TO WRITE CONTENTS OF 1 FILE IN REVERSE TO ANOTHER FILE,PROGRAM TO COPY 1 FILE TO ANOTHER BY SPECIFYING FILE NAMES AS COMMAND LINE

1482


how to write optimum code to divide a 50 digit number with a 25 digit number??

2763


What is the purpose of main( ) in c language?

632


What is the difference between volatile and const volatile?

575


How do I get an accurate error status return from system on ms-dos?

657


What is formal argument?

659


What is a struct c#?

609


The number of bytes of storage occupied by short, int and long are a) 2, 2 and 4 b) 2, 4 and 4 c) 4, 4 and 4 d) none

771