How are variables declared in c?



How are variables declared in c?..

Answer / Rimpy Yadav

In C, you declare a variable by specifying its data type (e.g., int, float, char) followed by the variable name (e.g., myVar). For example: `int myVar;`

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C Interview Questions

what does the following function print? func(int i) { if(i%2)return 0; eale return 1; } main() { int =3; i=func(i); i=func(i); printf("%d",i);}

9 Answers   TCS,


What is echo in c programming?

1 Answers  


explain how do you use macro?

1 Answers  


What is c language used for?

1 Answers  


Discuss similarities and differences of Multiprogramming OS and multiprocessing OS?

4 Answers   TCS,


What is volatile, register definition in C

1 Answers   Cognizant,


What are data types in c language?

1 Answers  


for(i=0;i=printf("Hello");i++); printf("Hello"); how many times how will be printed?????????

8 Answers  


Where in memory are my variables stored?

1 Answers  


52.write a “Hello World” program in “c” without using a semicolon? 53.Give a method to count the number of ones in a 32 bit number? 54.write a program that print itself even if the source file is deleted? 55.Given an unsigned integer, find if the number is power of 2?

9 Answers  


What is local and global variable in c?

1 Answers  


How can I find out the size of a file, prior to reading it in?

1 Answers  


Categories