What are preprocessor directives?
a=0; b=(a=0)?2:3; a) What will be the value of b? why b) If in 1st stmt a=0 is replaced by -1, b=? c) If in second stmt a=0 is replaced by -1, b=?
What is the explanation for modular programming?
What is the difference between exit() and _exit() function?
Calculate 1*2*3*____*n using recursive function??
Explain following declaration int *P(void); and int (*p)(char *a);
Is exit(status) truly equivalent to returning the same status from main?
2)#include<iostream.h> main() { printf("Hello World"); } the program prints Hello World without changing main() the o/p should be intialisation Hello World Desruct the changes should be a)iostream operator<<(iostream os, char*s) os<<'intialisation'<<(Hello World)<<Destruct b) c) d)none of the above
Explain can the sizeof operator be used to tell the size of an array passed to a function?
1. Write the function int countchtr(char string[ ], int ch); which returns the number of times the character ch appears in the string. Example, the call countchtr(“She lives in NEWYORK”, ‘e’) would return 3.
show how link list can be used to repersent the following polynomial i) 5x+2
Write a program to know whether the input number is an armstrong number.
What is 2c dna?