How do I determine whether a character is numeric, alphabetic, and so on?

The header file ctype.h defines various functions for determining what class a character belongs to. These consist of the following functions: Function Character Class Returns Nonzero for Characters isdigit() – Decimal digits – 0-9 isxdigit() – Hexadecimal digits – 0-9, a-f, or A-F isalnum() – Alphanumerics – 0-9, a-z, or A-Z isalpha() – Alphabetics – a-z or A-Z islower() – Lowercase alphabetics – a-z isupper() – Uppercase alphabetics – A-Z isspace() – Whitespace – Space, tab, vertical tab, newline, form feed, or carriage return isgraph() – Nonblank characters – Any character that appears nonblank when printed (ASCII 0x21 through 0x7E) … Click here to continue…..

What is the difference between a free-standing and a hosted environment?

Not all C programmers write database management systems and word processors. Some write code for embedded systems, such as anti-lock braking systems and intelligent toasters. Embedded systems don’t necessarily have any sort of file system, or much of an operating system at all. The ANSI/ISO standard calls these “free-standing” systems, and it doesn’t require them to provide anything except the language itself. The alternative is a program running on a PC or a mainframe or something in-between; that’s a “hosted” environment. Even people developing for free-standing environments should pay attention to the standard library. For one thing, if a free-standing … Click here to continue…..

What header files do I need in order to define the standard library functions I use?

The funny thing is, these are not necessarily the files that define what you’re looking for. Your compiler guarantees that (for example) if you want the EDOM macro, you can get it by including <errno.h>. EDOM might be defined in <errno.h>, or <errno.h> might just include something that defines it. Worse, the next version of your compiler might define EDOM somewhere else. Don’t look in the files for the definition and use that file. Use the file that’s supposed to define the symbol you want. It’ll work. A few names are defined in multiple files: NULL, size_t, and wchar_t. If … Click here to continue…..

WPF Interview Questions

Question: What is the base class in WPF (Not .net framework base class)? DispatherObject DependencyObject UIElement Visual Answer: Base class is DispatcherObject. This class is used to provide Thread Affinity features of the WPF controls and Thread affinity needed to overcome the complex global locking mechanism. Question: Which Layout in WPF is most performant? Grid Canvas StackPanel All of the above Answer: Canvas , since we already know the position where to place the control  so position calculation in layout phases are not required. Question: In Layout phase of WPF, how many passes of Logical Tree happened? 1 2 0 … Click here to continue…..

Visual Studio 2015 New Features

The Microsoft next release VS2015 expected on next year. So visual studio will moves to next stage. In VS2015 release with many new features I hope so. Visual Studio 2015 Preview contains many new and exciting features to support cross-platform mobile development, IDE productivity enhancements, and more.Let we list some new features in VS2015. Framework 4.6 Open source in VS2015 C# 6.0 Entity framework 7.0 Blend for visual studio 2015 Cross platform mobile development Architecture , design and modelling tooling features Framework 4.6 In vs2015 framework 4.6 version will release. Previous version of framework version 4.5.3. This version is … Click here to continue…..