Sir... please give some important coding questions asked by product companies..
No Answer is Posted For this Question
Be the First to Post Answer
#define int char main() { int i=65; printf("sizeof(i)=%d",sizeof(i)); }
C program to print magic square of order n where n > 3 and n is odd
main() { int a=2,*f1,*f2; f1=f2=&a; *f2+=*f2+=a+=2.5; printf("\n%d %d %d",a,*f1,*f2); }
What is the hidden bug with the following statement? assert(val++ != 0);
Given an array of characters which form a sentence of words, give an efficient algorithm to reverse the order of the words (not characters) in it.
#include<stdio.h> main() { int i=1,j=2; switch(i) { case 1: printf("GOOD"); break; case j: printf("BAD"); break; } }
write a c-program to find gcd using recursive functions
Write a single line c expression to delete a,b,c from aabbcc
#include<stdio.h> main() { int a[2][2][2] = { {10,2,3,4}, {5,6,7,8} }; int *p,*q; p=&a[2][2][2]; *q=***a; printf("%d..%d",*p,*q); }
main() { int i=-1; -i; printf("i = %d, -i = %d \n",i,-i); }
How to count a sum, when the numbers are read from stdin and stored into a structure?
main(int argc, char **argv) { printf("enter the character"); getchar(); sum(argv[1],argv[2]); } sum(num1,num2) int num1,num2; { return num1+num2; }