-
Pointer Disadvantages
What are the disadvantages of using pointer in C?
-
Count Negative Elements
A list of number is given. Make a program which counts the no of negative elements using array inc.
-
Faster Statement Execute
Which one will execute faster if(flag==0) or if (0==flag) and why?
-
Declare Array of N Pointers
How do you declare an array of N pointers to functions returning pointers to functions returning pointers to characters?
-
Declare an array of N pointers
How do I declare an array of N pointers to functions returning pointers to functions returning pointers to characters?
-
How do you loop a program to display your name however times you want it to.
and to display " Hello %s!! Do you want to try again [Y/N]? "
-
Difference between printf and cprintf
What is the difference between cprintf and printf? Please explain in detail.
-
What change is required in the following program so that its output becomes 3,6,11,20,37,......1034?
c#include
#include
int main()
{
int a=1,r=2,i;
for (i=0;iWhat will be output if you will execute following c code?
c #i ain()
{
float p=1,q=2,r=-2,a;
a=avg(p,(q=4,r=-12,q),r);
printf("%f",a); return 0;
}
float avg(float x,float y,float z)
{
return (x+y+z)/3;
}
a) 1.000000
b) 0.333333
c) -2.333333
d) 1Program to print all prime numbers btw 1 to 100
C Program to print all prime numbers btw 1 to 100..pls explain the program: What is if(p)??cpp#include
#include
int main()
{
int num,n,div,p;
printf("Enter any number: ");
scanf("%d", &num);
for(n=2; nOutput for following and explanation
j=scanf("%d",&i);
printf("%d",j);What is the benefit of using const for declaring constants?
The benefit of using the const keyword is that the compiler might be able to make optimizations based on the knowledge that the value of the variable will not change. In addition, the compiler will try to ensure that the values won’t be changed inadvertently. Of course, the same benefits apply to #defined constants. The reason to use const rather than #define to define a constant is that a const variable...
Are pointers integers?
No, pointers are not integers.A pointer is an address.It is merely a positive number and not an integer.
Ans