how to create a 3x3 two dimensional array that will give you the sums on the left and bottom columns
What is the hidden bug with the following statement? assert(val++ != 0);
#include<stdio.h> void fun(int); int main() { int a; a=3; fun(a); printf("\n"); return 0; } void fun(int i) { if(n>0) { fun(--n); printf("%d",n); fun(--n); } } the answer is 0 1 2 0..someone explain how the code is executed..?
main() { static int var = 5; printf("%d ",var--); if(var) main(); }
Given an array of size N in which every number is between 1 and N, determine if there are any duplicates in it. You are allowed to destroy the array if you like.
21 Answers ABC, eBay, Goldman Sachs, Google, HUP, Microsoft, TATA,
Write a program that produces these three columns sequence nos. using loop statement Sequence nos. Squared Squared + 5 1 1 6 2 4 9 3 9 14 4 16 21 5 25 30
Print an integer using only putchar. Try doing it without using extra storage.
To reverse an entire text file into another text file.... get d file names in cmd line
#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); }
Is the following code legal? struct a { int x; struct a *b; }
void main() { while(1){ if(printf("%d",printf("%d"))) break; else continue; } }
Write a program to check whether the number is prime and also check if it there i n fibonacci series, then return true otherwise return false
1 o 1 1 0 1 0 1 0 1 1 0 1 0 1 how to design this function format in c-language ?