Browsing index pages (3 articles)
↧
NULL confusion in C
I am creating a simple "ascending" program. When I find smallest int in array of int I want to replace it with some other value so it won't come as smallest number again in the array. For that, I...
View ArticleAnswer by Paul R for NULL confusion in C
In C and related languages ints are not "nullable" - you could use a special value instead, e.g. a value that is well outside the expected range of your input data, such as INT_MAX:#include...
View ArticleAnswer by Karthik Nayak for NULL confusion in C
Read the differences between NULL and 0 and '\0'here. There is a type mismatch when you're trying a[k]!=NULL.#include<stdio.h>#include<conio.h>int main(){ clrscr(); int a[10], b, c = 0, d =...
View Article
Browsing index pages (3 articles)