say the following declaration is correct nr not.
int b=a,n=0;
Answers were Sorted based on User's Feedback
Answer / nishant kumar
it's wrong as u are asigning 'a' to 'b' without declaring its data type..
Is This Answer Correct ? | 3 Yes | 0 No |
What is ambagious result in C? explain with an example.
Explain following declaration int *P(void); and int (*p)(char *a);
what information does the header files contain?
6 Answers BSNL, Cisco, GDA Technologies,
sir i wanted to know how we wap in c to add numbers without using arithmetic operator in which digits are entered by user?
#include<stdio.h> main() { int a[3]; int *I; a[0]=100;a[1]=200;a[2]=300; I=a; Printf(“%d\n”, ++*I); Printf(“%d\n”, *++I); Printf(“%d\n”, (*I)--); Printf(“%d\n”, *I); } what is the o/p a. 101,200,200,199 b. 200,201,201,100 c. 101,200,199,199 d. 200,300
a number is perfect if it is equal to the sum of its proper divisor.. 6 is perfect number coz its proper divisors are 1,2 and three.. and 1+2+3=6... a number is deficient if the sum of its proper divisor is less than the number.. sample: 8 is deficient, coz its proper divisors are 1,2 and 4, and 1+2+4=7. abundant number, if the sum of its proper divisor is greater than the number.. sample..12 is abundant coz 1+2+3+4+6=16 which is geater than 12. now write a program that prompts the user for a number, then determines whether the number is perfect,deficient and abundant..
code snippet for creating a pyramids triangle ex 1 2 2 3 3 3
Explain is it valid to address one element beyond the end of an array?
What is variable in c with example?
O,T,T,F,F,S,S,E,N,?,?,?,T,F,F,S,S,E,N
44.what is the difference between strcpy() and memcpy() function? 45.what is output of the following statetment? 46.Printf(“%x”, -1<<4); ? 47.will the program compile? int i; scanf(“%d”,i); printf(“%d”,i); 48.write a string copy function routine? 49.swap two integer variables without using a third temporary variable? 50.how do you redirect stdout value from a program to a file? 51.write a program that finds the factorial of a number using recursion?
In which category does main function belong??