What is variable in c with example?
Answer / utsav patel
in c language five types of variable are present
1) local variable.
2) global variable.
3) static variable.
4) automatic variable.
5) external variable.
| Is This Answer Correct ? | 0 Yes | 0 No |
Which of the Following is not defined in string.h? A)strspn() B)strerror() C)memchr() D)strod()
What language is windows 1.0 written?
#include<stdio.h> #include<conio.h> void main() { float a; clrscr(); a=0.5; if(a==0.5) printf("yes"); else printf("no"); getch(); }
what is the purpose of the code, and is there any problem with it. bool f( uint n ) { return (n & (n-1)) == 0; }
How can I run c program?
What will be the result of the following program? char*g() { static char x[1024]; return x; } main() { char*g1="First String"; strcpy(g(),g1); g1=g(); strcpy(g1,"Second String"); printf("Answer is:%s", g()); } (A) Answer is: First String (B) Answer is: Second String (C) Run time Error/Core Dump (D) None of these
What are the uses of pre-processor directives?
Write a program in C to print the alphabets in order as on a mobile phone.i.e:When 2 is pressed once 'a' prints and if it is pressed two times 'b' prints and so on.we have to print all the alphabets as on mobile phone like this.
Can you please compare array with pointer?
Can a variable be both static and volatile in c?
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.?
List the difference between a While & Do While loops?